[NTG-context] hyphen in class (from XML)
Pablo Rodriguez
oinos at gmx.es
Sun Mar 22 19:08:30 CET 2015
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
More information about the ntg-context
mailing list