Re: [xsl] Using variables to get the complement of a node set

Subject: Re: [xsl] Using variables to get the complement of a node set
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 10 Feb 2012 12:44:29 +0100
ihe onwuka wrote:
Suppose the children of the context node are elements named A to Z.

Then I declare a variable

<xsl:variable name="alpha" select="A|B|C|D"/>

Now i want to match on the complement of alpha.

Can I say

<xsl:template match="* except $alpha"/>

Yes, with XSLT 2.0, not with 1.0.





--


	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/

Current Thread