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

RE: Selecting nodes whose text content contains a memb

Subject: RE: Selecting nodes whose text content contains a member of a Node-set...
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 10 Sep 2001 21:45:28 +0100
select nodes contains
> Basically, I wante to implement a very basic form of partial
> string matching
> which I think should be possible in XSLT. Basically, I only
> want to select
> nodes from a node-set whose text content contains one member
> of another node-set.

The "=" operator, when applied to two node-sets, tests whether there is a
node in the first node-set whose string-value is equal to the string-value
of some node in the second node-set.

So your problem is easy:

<xsl:if test="xx:tokenize($param) = $words">

Mike Kay

>
> Can anyone help with this....
>
> Basically, I am using Xalan, and passing a String as a
> parameter. I could then
> use Xalan's tokenize function to create a node-set containing
> all the "words"
> in the passed parameter. Now I want to check that one of the
> members of the
> "words" node-set is contained in the text node on which I'm
> basing selection.
>
>


 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.