xsl-list
[Top] [All Lists]

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

2012-02-10 05:32:04
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]"/>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>