This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: excluding nodes from an xsl template
- To: xsl-list at mulberrytech dot com
- Subject: Re: excluding nodes from an xsl template
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 7 Jul 2000 17:00:14 +0100 (BST)
- References: <88256915.0055B4D9.00@iint.com>
- Reply-To: xsl-list at mulberrytech dot com
The cleanest way would be to sort your input document using namespaces
then you could use html:* to copy everything in the html namespace
and xsp:* to match against anything in a namespace for the xsp stuff,
but assuming you need everything in the default null namespace,
<xsl:template match="*[not(self::xsp)]">...
<xsl:template match="xsp">...
is your friend.
We've already tried things like
- <xsl:template match="* and self::not(xsp)">
- <xsl:template match="* and not(xsp)">
- <xsl:template match="node() and not(xsp)">
They are all boolean expressions (except the first which is a syntax
error) but you can't have arbitrary xpath expressions in a match, you
have to have a _pattern_ which is a subset of the node-set valued xpath
expressions.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list