This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]