Dear list, I have the following sample: \startbuffer[demo] <span class="tex-logo">TeX</span> \stopbuffer \setupinteraction[state=start] \startxmlsetups xml:initialize \xmlsetsetup{#1}{span[contains(@class,'tex-logo')]}{xml:tex:logo} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:tex:logo \TeX \stopxmlsetups \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stoptext Unless I remove the hyphen from the class and from the setups (or replace both hyphens with an underscore hyphen), I won’t get the \TeX logo. Have I hit a bug or is it a feature? Many thanks for your help, Pablo -- http://www.ousia.tk
On 3/22/2015 7:08 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\startbuffer[demo] <span class="tex-logo">TeX</span> \stopbuffer
\setupinteraction[state=start]
\startxmlsetups xml:initialize \xmlsetsetup{#1}{span[contains(@class,'tex-logo')]}{xml:tex:logo} \stopxmlsetups
\xmlregistersetup{xml:initialize}
\startxmlsetups xml:tex:logo \TeX \stopxmlsetups
\stopxmlsetups
\starttext \xmlprocessbuffer{main}{demo}{} \stoptext
Unless I remove the hyphen from the class and from the setups (or replace both hyphens with an underscore hyphen), I won’t get the \TeX logo.
Have I hit a bug or is it a feature?
\letterpercent- (unless we decide to auto-escape) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 03/23/2015 10:12 AM, Hans Hagen wrote:
On 3/22/2015 7:08 PM, Pablo Rodriguez wrote:
[...] Unless I remove the hyphen from the class and from the setups (or replace both hyphens with an underscore hyphen), I won’t get the \TeX logo.
Have I hit a bug or is it a feature?
\letterpercent-
(unless we decide to auto-escape)
Many thanks for your reply, Hans. It works fine now. Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez