problem with UTF8 chars in XML elements
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
Dear list,
I have the following sample:
\startbuffer[demo]
<?xml version="1.0" encoding="UTF-8"?>
<doc>
![](https://secure.gravatar.com/avatar/880e9a15b17a0bf7159f4e31030a9be2.jpg?s=120&d=mm&r=g)
Am 05.05.2019 um 14:58 schrieb Pablo Rodriguez
: Dear list,
I have the following sample:
\startbuffer[demo] <?xml version="1.0" encoding="UTF-8"?> <doc>
Title </doc> \stopbuffer\startxmlsetups xml:sample \xmlsetsetup{#1}{doc|título}{xml:*} \stopxmlsetups
\xmlregistersetup{xml:sample}
\startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups
\startxmlsetups xml:título \title{\xmlflush{#1}} \stopxmlsetups
\starttext \xmlprocessbuffer{main}{demo}{} \stoptext
ConTeXt has problems parsing
. To the best of my knowledge, this is a valid XML element name (sorry, but I don’t have a better reference: https://en.wikipedia.org/wiki/XML#International_use]).
I had the same problem with an „ä“ in one of my elements. Took some time to discover that. Axel
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 5/5/19 5:25 PM, Axel Kielhorn wrote:
Am 05.05.2019 um 14:58 schrieb Pablo Rodriguez: [...] ConTeXt has problems parsing
. To the best of my knowledge, this is a valid XML element name (sorry, but I don’t have a better reference: https://en.wikipedia.org/wiki/XML#International_use]). I had the same problem with an „ä“ in one of my elements.
Hans fixed this in latest beta (so that everybody knows). Hans, many thanks for the fix. Pablo -- http://www.ousia.tk
participants (2)
-
Axel Kielhorn
-
Pablo Rodriguez