[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: excluding nodes from an xsl template

Subject: Re: excluding nodes from an xsl template
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 7 Jul 2000 17:00:14 +0100 (BST)
xsl excluding nodes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.