[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Excluding Matches in Template

Subject: Re: Excluding Matches in Template
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Thu, 26 Jun 2003 10:05:34 -0700
Re:  Excluding Matches in Template
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.