[NTG-context] \startXML vs \startPARSEDXML

denis.maier at unibe.ch denis.maier at unibe.ch
Thu May 12 09:49:35 CEST 2022


Thanks!
That's interesting.
Does anyone know what is happening here?
Best,
Denis

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces at ntg.nl> Im Auftrag von Pablo
> Rodriguez via ntg-context
> Gesendet: Mittwoch, 11. Mai 2022 18:19
> An: Denis Maier via ntg-context <ntg-context at ntg.nl>
> Cc: Pablo Rodriguez <oinos at gmx.es>
> 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">
>     <sección id="sect">
>      <título>Anuncio</título>
>      <p xml:lang="grc">καλά</p>
>      <p class="traducción">Belleza</p>
>     </sección>
>    </documento>
>   </xml>
>   \stopXML
>   \stopxcell
>   \startxcell
>   \startPARSEDXML
>   <?xml version="1.0" encoding="UTF-8"?>
>   <xml>
>    <documento xml:lang="es">
>     <sección id="sect">
>      <título>Anuncio</título>
>      <p xml:lang="grc">καλά</p>
>      <p class="traducción">Belleza</p>
>     </sección>
>    </documento>
>   </xml>
>   \stopPARSEDXML
>   \stopxcell
>   \stopxrow
>   \stopxtable
>   \stoptext
> 
> 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 at 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
> ______________________________________________________________
> _____________________


More information about the ntg-context mailing list