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

Subject: [xsl] Using variables to get the complement of a node set
From: ihe onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Fri, 10 Feb 2012 11:31:50 +0000
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"/>
or
<xsl:template match="*[not $alpha]"/>

Current Thread