wrong xml char handling
Dear list, I’m afraid there may be a bug in betas from February (including the latest one from 2016.02.08 15:35): \startbuffer[demo] <doc> <p>Link: <a href="http://a.b/c#d">http://a.b/c#d</a></p> </doc> \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{p|doc|a}{xml:*} \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:a \mypersonalurl{\xmlflush{#1}} \stopxmlsetups \def\mypersonalurl#1{\bgroup\tt\goto{% \hyphenatedurl{#1}}[url(#1)]\egroup}% \unexpanded\def\href#1#2{\goto{#2} [url(#1)]} \xmlprocessbuffer{main}{demo}{} \stoptext Output with latest beta: Link: http://a.b/c\Ux {23}d Output with beta from 2016.01.14 09:55; Link: http://a.b/c#d I guess this is a bug. Could anyone else confirm this? Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/9/2016 11:36 AM, Pablo Rodriguez wrote:
Dear list,
I’m afraid there may be a bug in betas from February (including the latest one from 2016.02.08 15:35):
\startbuffer[demo] <doc> <p>Link: <a href="http://a.b/c#d">http://a.b/c#d</a></p> </doc> \stopbuffer
\starttext
\startxmlsetups xml:initialize \xmlsetsetup{#1}{p|doc|a}{xml:*} \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo} \stopxmlsetups
\xmlregistersetup{xml:initialize}
\startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups
\startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups
\startxmlsetups xml:a \mypersonalurl{\xmlflush{#1}} \stopxmlsetups
\def\mypersonalurl#1{\bgroup\tt\goto{% \hyphenatedurl{#1}}[url(#1)]\egroup}% \unexpanded\def\href#1#2{\goto{#2} [url(#1)]}
\xmlprocessbuffer{main}{demo}{}
\stoptext
Output with latest beta:
Link: http://a.b/c\Ux {23}d
Output with beta from 2016.01.14 09:55;
Link: http://a.b/c#d
I guess this is a bug. Could anyone else confirm this?
fixed in next beta ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 02/09/2016 06:02 PM, Hans Hagen wrote:
On 2/9/2016 11:36 AM, Pablo Rodriguez wrote:
[...] Output with latest beta:
Link: http://a.b/c\Ux {23}d
Output with beta from 2016.01.14 09:55;
Link: http://a.b/c#d
I guess this is a bug. Could anyone else confirm this?
fixed in next beta
Many thanks for the fix. Hans. Sorry for sounding impatient, but since next beta may take longer to be released (because of columnsets), would it be possible to have a patch to use latest released beta? Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/10/2016 12:19 PM, Pablo Rodriguez wrote:
On 02/09/2016 06:02 PM, Hans Hagen wrote:
On 2/9/2016 11:36 AM, Pablo Rodriguez wrote:
[...] Output with latest beta:
Link: http://a.b/c\Ux {23}d
Output with beta from 2016.01.14 09:55;
Link: http://a.b/c#d
I guess this is a bug. Could anyone else confirm this?
fixed in next beta
Many thanks for the fix. Hans.
Sorry for sounding impatient, but since next beta may take longer to be released (because of columnsets), would it be possible to have a patch to use latest released beta?
patch involves more than one line in a few files fwiw: here we never used the latest beta in critical workflows unless tested beforehand (so we always lag a few betas behind) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 02/10/2016 01:51 PM, Hans Hagen wrote:
On 2/10/2016 12:19 PM, Pablo Rodriguez wrote:
[...] Sorry for sounding impatient, but since next beta may take longer to be released (because of columnsets), would it be possible to have a patch to use latest released beta?
patch involves more than one line in a few files
OK, this is fine for me. I only asked because I thought it was a simple replacement.
fwiw: here we never used the latest beta in critical workflows unless tested beforehand (so we always lag a few betas behind)
Many thanks for the advice. My workflow isn’t really critical. Sorry, but I’m afraid I don’t earn a living (or even make money) with ConTeXt. I think it makes sense that I work with latest beta. This is the only way I can reasonably test it, so I may report issues that will benefit every ConTeXt user (including myself :-)). But, please, let me know whehter my previous assumption is wrong. Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/10/2016 3:38 PM, Pablo Rodriguez wrote:
On 02/10/2016 01:51 PM, Hans Hagen wrote:
On 2/10/2016 12:19 PM, Pablo Rodriguez wrote:
[...] Sorry for sounding impatient, but since next beta may take longer to be released (because of columnsets), would it be possible to have a patch to use latest released beta?
patch involves more than one line in a few files
OK, this is fine for me. I only asked because I thought it was a simple replacement.
fwiw: here we never used the latest beta in critical workflows unless tested beforehand (so we always lag a few betas behind)
Many thanks for the advice.
My workflow isn’t really critical. Sorry, but I’m afraid I don’t earn a living (or even make money) with ConTeXt.
I think it makes sense that I work with latest beta. This is the only way I can reasonably test it, so I may report issues that will benefit every ConTeXt user (including myself :-)).
But, please, let me know whehter my previous assumption is wrong.
sounds ok to me but then you have to wait till i update (one of these days) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Pablo Rodriguez