[Home] [By Thread] [By Date] [Recent Entries]
More info (sorry I didn't put it in the first post)
Rush Manbert wrote: I want to create a global variable that contains the result tree fragment contained within element <c>, with the following restrictions:Some things I have tried: <xsl:variable name="set" select="/a/b/c/*[((name() != 'y') and (name() != 'z'))] | /a/b/c//y[1]" /> <xsl:variable name="set" select="/a/b/c/descendant::*[((name() != 'y') and (name() != 'z'))] | /a/b/c//y[1]" /> Then I tried to just exclude <z> at any level: <xsl:variable name="set" select="/a/b/c/descendant::*[not(self::z)]" /> but that only excludes <z> elements that are children of <c>. I'm using xsltproc, built with libxml 2.6.19 and libxslt 1.1.14 - Rush
|

Cart



