[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: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Jun 2003 17:20:09 +0100
Re:  Excluding Matches in Template
> So how to test for the occurence of @submitid
> anywhere within my exclude source. 



 = when used with a node set like
$excludes/ID is  true if any of the nodes is equal to whatever you are
testing.


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.


<xsl:variable name="curID"><xsl:value-of
select="@submitid"/></xsl:variable>

grr as in a message of a minute ago, dont do that do this

<xsl:variable name="curID"
select="@submitid"/>

it's less to type and a lot less work for your processor.
(athough of course in this case you don't need a variable at all 
not($excludes/ID=@submitid)
should work fine.)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.