[NTG-context] ignoring an element in XML

Hans Hagen pragma at wxs.nl
Mon Jan 12 22:32:17 CET 2015


On 1/12/2015 9:41 PM, Pablo Rodriguez wrote:
> Dear list,
>
> I have an XML document with <h1> different elements.
>
> I want to parse the vast majority of them, but not the ones that are
> wrapped in a <div class="hidden"> element.
>
> Which is the right way to do it? The following doesn’t work:
>
>      \xmlsetsetup{\xmldocument}{div[@class='hidden']/h1}{}

replace {} by {xml:whatever} i.e. a non-existing setup

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