[NTG-context] ignoring an element in XML

Pablo Rodriguez oinos at gmx.es
Mon Jan 12 21:41:52 CET 2015


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

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list