Re: [NTG-context] problem with UTF8 chars in XML elements
> Am 05.05.2019 um 14:58 schrieb Pablo Rodriguez : > > Dear list, > > I have the following sample: > >\startbuffer[demo] > > >Title > >\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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] problem with UTF8 chars in XML elements
Dear list, I have the following sample: \startbuffer[demo] Title \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]). How can I get this parsed with ConTeXt? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___