Subject: RE: [xsl] 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 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Selecting nodes whose text co, Joel Beach | Thread | [xsl] How to form correct structure, David O Baldwin |
RE: [xsl] XML -> HTML with paragrap, Michael Kay | Date | RE: [xsl] XML -> HTML with paragrap, Joshua Miller |
Month |