xsl-list
[Top] [All Lists]

Re: Excluding Matches in Template

2003-06-26 10:05:34
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=(_at_)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=(_at_)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



<Prev in Thread] Current Thread [Next in Thread>