Subject: Re: excluding nodes from an xsl template From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 7 Jul 2000 17:00:14 +0100 (BST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
excluding nodes from an xsl templat, Kevin . Hooke | Thread | Re: excluding nodes from an xsl tem, David Carlisle |
Re: criticism of MSXML (was Re: asp, Mike Brown | Date | Re: excluding nodes from an xsl tem, David Carlisle |
Month |