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

Re: [xsl] Excluding Matches in Template


Subject: Re: [xsl] Excluding Matches in Template
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Thu, 26 Jun 2003 10:05:34 -0700

David,

> But if your variable is defined as in the first post you want
> $excludes/EXCLUDE/ID
> not
> $excludes/ID
> as you don't have any ID elements at the top level of the variable.

Here is how I've written my PARAM:

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

Is this ok?  I'm assuming that this gets me all of the ID elements when I do
the following:
$excludes/ID
Karl

- <EXCLUDE>
  <ID>124266</ID>
  <ID>681002</ID>
  <ID>681144</ID>
  <ID>708136</ID>
  </EXCLUDE>

> not($excludes/ID=@submitid)
> should work fine.)

Oh - and I thought I tried your suggested match... but trying again right
now.
Not working : (
Here it is exactly:

<xsl:template match="z:row">
 <xsl:if test="not($excludes/ID=@submitid)">
    <xsl:call-template name="addval"/>
    </xsl:if>
</xsl:template>

NOTE:  it is matching the first item, just not the remaining ones.


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



Current Thread