Re: [xsl] How to create a node set that excludes some descendant elements?

Subject: Re: [xsl] How to create a node set that excludes some descendant elements?
From: Rush Manbert <rush@xxxxxxxxxxx>
Date: Tue, 12 Apr 2005 11:20:18 -0700
Mukul Gandhi wrote:

Hi Rush,
Please try this XSL -
<!-- include only 1st y , and exclude all z -->
<xsl:template match="y[ancestor::y or preceding::y] |
z" />


This is a nice elegant expression for excluding the <z> and extra <y> elements. I used a variation of this in my final version.

Thanks,
Rush

Current Thread