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
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 -----------------------------------------------------------------
On 01/12/2015 10:32 PM, Hans Hagen wrote:
On 1/12/2015 9:41 PM, Pablo Rodriguez wrote:
[...] \xmlsetsetup{\xmldocument}{div[@class='hidden']/h1}{}
replace {} by {xml:whatever} i.e. a non-existing setup
Many thanks for your reply, Hans. Both commands work in a minimal sample, but they don’t work in the real book :-(. It seems that I have to keep searching what I’m doing wrong. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez