xsl-list
[Top] [All Lists]

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

2005-04-12 11:20:18


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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--