Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT Replace

Status
Not open for further replies.

flanakin

Programmer
Mar 21, 2000
158
US
I want to replace certain words within a string. How can I do this? ________________________________________
Michael C Flanakin
Indigo Web Systems
flanakinm@indigows.com
 
if i am not mistaken, in xsl, there is something along the line of xsl:substring. might be worth u checking it out.
:)
 
I want to be able to replace &quot;(b)&quot; with &quot;<b>&quot; and things like that.

I also need to know how to only uppercase the first letter, but I think I can handle that one with xsl:substr and translate().

Thanks for the help, tho. ________________________________________
Michael C Flanakin
Indigo Web Systems
flanakinm@indigows.com
 
how about using regular expressions ? i think xslt supports that.
 
Can you give me an example of how to implement this? I have little experience with RegExp, but I can figure that part out. I'm more wondering how to work the RegExp into the XSLT. I haven't noticed any functions or XSL elements. ________________________________________
Michael C Flanakin
Indigo Web Systems
flanakinm@indigows.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top