[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|