\startXML vs \startPARSEDXML
Hi everyone, the wikipage on \starttyping (https://wiki.contextgarden.net/Command/_starttyping) says there are some dedicated commands, e.g. \startXML and \startPARSEDXML. How do they differ? Best, Denis
On 5/11/22 11:47, Denis Maier via ntg-context wrote:
Hi everyone,
the wikipage on \starttyping (https://wiki.contextgarden.net/Command/_starttyping https://wiki.contextgarden.net/Command/_starttyping) says there are some dedicated commands, e.g. \startXML and \startPARSEDXML. How do they differ?
Hi Denis,
yesterday I had to start using xml instead of parsed-xml.
See the difference:
\setuppapersize[A4, landscape]
\setupbodyfont[dejavu]
\starttext
\startxtable[option=stretch]
\startxrow[offset=1ex]
\startxcell
\startXML
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<documento xml:lang="es">
Thanks! That's interesting. Does anyone know what is happening here? Best, Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Pablo Rodriguez via ntg-context Gesendet: Mittwoch, 11. Mai 2022 18:19 An: Denis Maier via ntg-context Cc: Pablo Rodriguez Betreff: Re: [NTG-context] \startXML vs \startPARSEDXML On 5/11/22 11:47, Denis Maier via ntg-context wrote:
Hi everyone,
the wikipage on \starttyping (https://wiki.contextgarden.net/Command/_starttyping https://wiki.contextgarden.net/Command/_starttyping) says there are some dedicated commands, e.g. \startXML and \startPARSEDXML. How do they differ?
Hi Denis,
yesterday I had to start using xml instead of parsed-xml.
See the difference:
\setuppapersize[A4, landscape] \setupbodyfont[dejavu] \starttext \startxtable[option=stretch] \startxrow[offset=1ex] \startxcell \startXML <?xml version="1.0" encoding="UTF-8"?> <xml> <documento xml:lang="es">
</documento> </xml> \stopXML \stopxcell \startxcell \startPARSEDXML <?xml version="1.0" encoding="UTF-8"?> <xml> <documento xml:lang="es"> Anuncio <p xml:lang="grc">καλά</p> <p class="traducción">Belleza</p></documento> </xml> \stopPARSEDXML \stopxcell \stopxrow \stopxtable \stoptext Anuncio <p xml:lang="grc">καλά</p> <p class="traducción">Belleza</p>I wonder why attribute values are parsed so. I don’t know whether this might be a bug (but this is why I replaced "parsed-xml" with "xml" in my code).
If I could ask you a favor, would you be so kind to confirm whether \xmlpos and \xmldepth are misbehaving or not (as already reported in https://mailman.ntg.nl/pipermail/ntg-context/2022/105495.html and https://mailman.ntg.nl/pipermail/ntg-context/2022/105604.html)?
Many thanks for your help,
Pablo ______________________________________________________________ _____________________ 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 ______________________________________________________________ _____________________
participants (2)
-
denis.maier@unibe.ch
-
Pablo Rodriguez