[NTG-context] ignore not closed tags in XML input

Pablo Rodriguez oinos at gmx.es
Mon May 16 17:08:44 CEST 2022


Dear list,

I would like to feed
https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/001.html as
XML input for ConTeXt.

The problem is that (as many other XML files that I haven’t generated
myself) some <meta> and <link> tags aren’t closed, such as in:

  <meta charset="utf-8">
  <link href="https://fonts/css?greek" rel="stylesheet">
  <link href="style.css" rel="stylesheet">

So, all that I get is the following message:

  invalid xml file - parsed text

Unsuccessfully I have tried the following:

  \xmlsetsetup{#1}{html/head/(meta|link)}{-}

Is there no way to make ConTeXt more tolerant, so that it is able to
ignore those tags?

Many thanks for your help,

Pablo


More information about the ntg-context mailing list