Subject: Re: [xsl] Using variables to get the complement of a node set From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 10 Feb 2012 11:42:45 +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
no that would be a legal xpath but not a pattern
<xsl:template match="* except $alpha"/>
or <xsl:template match="*[not $alpha]"/>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using variables to get the co, ihe onwuka | Thread | Re: [xsl] Using variables to get th, Wendell Piez |
[xsl] Using variables to get the co, ihe onwuka | Date | Re: [xsl] Using variables to get th, Martin Honnen |
Month |