* \startXML vs \startPARSEDXML
@ 2022-05-11 9:47 Denis Maier via ntg-context
2022-05-11 16:19 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Denis Maier via ntg-context @ 2022-05-11 9:47 UTC (permalink / raw)
To: ntg-context; +Cc: denis.maier
[-- Attachment #1.1: Type: text/plain, Size: 212 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1972 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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: \startXML vs \startPARSEDXML
2022-05-11 9:47 \startXML vs \startPARSEDXML Denis Maier via ntg-context
@ 2022-05-11 16:19 ` Pablo Rodriguez via ntg-context
2022-05-12 7:49 ` Denis Maier via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-05-11 16:19 UTC (permalink / raw)
To: Denis Maier via ntg-context; +Cc: Pablo Rodriguez
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@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: \startXML vs \startPARSEDXML
2022-05-11 16:19 ` Pablo Rodriguez via ntg-context
@ 2022-05-12 7:49 ` Denis Maier via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Denis Maier via ntg-context @ 2022-05-12 7:49 UTC (permalink / raw)
To: ntg-context; +Cc: denis.maier, oinos
Thanks!
That's interesting.
Does anyone know what is happening here?
Best,
Denis
> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@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@ntg.nl>
> Cc: Pablo Rodriguez <oinos@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@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
> ______________________________________________________________
> _____________________
___________________________________________________________________________________
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:[~2022-05-12 7:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 9:47 \startXML vs \startPARSEDXML Denis Maier via ntg-context
2022-05-11 16:19 ` Pablo Rodriguez via ntg-context
2022-05-12 7:49 ` Denis Maier via ntg-context
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).