* problem with UTF8 chars in XML elements @ 2019-05-05 12:58 Pablo Rodriguez 2019-05-05 15:25 ` Axel Kielhorn 0 siblings, 1 reply; 3+ messages in thread From: Pablo Rodriguez @ 2019-05-05 12:58 UTC (permalink / raw) To: mailing list for ConTeXt users Dear list, I have the following sample: \startbuffer[demo] <?xml version="1.0" encoding="UTF-8"?> <doc> <título>Title</título> </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 <título>. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with UTF8 chars in XML elements 2019-05-05 12:58 problem with UTF8 chars in XML elements Pablo Rodriguez @ 2019-05-05 15:25 ` Axel Kielhorn 2019-05-19 17:36 ` Pablo Rodriguez 0 siblings, 1 reply; 3+ messages in thread From: Axel Kielhorn @ 2019-05-05 15:25 UTC (permalink / raw) To: ntg-context > Am 05.05.2019 um 14:58 schrieb Pablo Rodriguez <oinos@gmx.es>: > > Dear list, > > I have the following sample: > > \startbuffer[demo] > <?xml version="1.0" encoding="UTF-8"?> > <doc> > <título>Title</título> > </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 <título>. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with UTF8 chars in XML elements 2019-05-05 15:25 ` Axel Kielhorn @ 2019-05-19 17:36 ` Pablo Rodriguez 0 siblings, 0 replies; 3+ messages in thread From: Pablo Rodriguez @ 2019-05-19 17:36 UTC (permalink / raw) To: ntg-context On 5/5/19 5:25 PM, Axel Kielhorn wrote: >> Am 05.05.2019 um 14:58 schrieb Pablo Rodriguez: >> [...] >> ConTeXt has problems parsing <título>. 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-19 17:36 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-05-05 12:58 problem with UTF8 chars in XML elements Pablo Rodriguez 2019-05-05 15:25 ` Axel Kielhorn 2019-05-19 17:36 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).