This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: logical and in selection expression possible?


Ok, I've run into a bit of a snag.
When I am passing the union of the nodesets to the applied template, it appears that the template is being activated twice. I was hoping to be able to access both nodesets at the same time.... unless they are the children of the same parent, is this impossible?
Thanks,
Alex


From: David Carlisle <davidc@nag.co.uk>
Reply-To: xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] logical and in selection expression possible?
Date: Thu, 18 Jul 2002 17:17:29 +0100

<xsl:apply-templates select="key('key', rulekey1') and key('key',
'rulekey2') "/>

you want | there not and and is a boolean operator so this expression
will evaluate to true or false. but a select expression needs a node
set.


<xsl:template match="rule and rule2">

ditto.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]