[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: excluding nodes from an xsl template
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|