[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Excluding Matches in Template


Subject: [xsl] Excluding Matches in Template
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Wed, 25 Jun 2003 14:54:41 -0700

Hello,

I have a stylesheet, that as is works perfect.
I am now going to pass into the stylesheet (as a parameter) an xml document
(of simple structure) which will be exclusions for my main template match.
I'm not sure how to "apply templates where not excluded" (in litteral
sense).

Here is my parameter and template match:

<xsl:param name="excludes" select="/"/>

<xsl:template match="/">
 <xsl:apply-templates select="xml/rs:data/z:row"/>
</xsl:template>


excludes will look like this:
<EXCLUDE>
    <ID>34329</ID>
    <ID>36329</ID>
    <ID>35729</ID>
</EXCLUDE>

Thanks for the help!
Karl


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml