[NTG-context] hyphen in class (from XML)

Hans Hagen pragma at wxs.nl
Mon Mar 23 10:12:27 CET 2015


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
-----------------------------------------------------------------


More information about the ntg-context mailing list