|
Subject: [xsl] How to Tag Several Words in a Given String From: UlyLee <ulyleeka@xxxxxxxxx> Date: Tue, 11 Oct 2005 21:25:48 -0700 (PDT) |
Hello,
I have this scenario, i have a string:
<String>Name1 and Name2 becomes Name3</String>
and have a set of valid strings that needs to tagged
which i assigned to a variable:
<xsl:varible name="testStr" as:"xs:string*"
select="('Name1', 'Name3')"/>
My desired output should be like this:
<String><validName>Name1</validName> and Name2 becomes
<validName>Name3</validName></String>
I was thinking of using a for-each loop to process the
matches, but i'm stuck into what procedures i need to
put in the for-loop:
<xsl:for-each select="$testStr">
<xsl:if test="contains(String,.)">
???
</xsl:if>
</xsl:for-each>
Am i going in the right direction here? or is there a
better way to do this?
-- UlyLee
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] String replacement in inc, Rush Manbert | Thread | RE: [xsl] How to Tag Several Words , Michael Kay |
| Re: [xsl] String replacement in inc, Rush Manbert | Date | [xsl] Caching of XSL under Tomcat, Lensch, Thomas |
| Month |