Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing an xslt code which takes string input.I want to remove the spaces and dots from the string and return it.

Tried googling it but no help...

Any help or pointers wud be helpful..
thanks in advance
Posted
Updated 8-May-12 1:54am

Xslt 2.0 has a replace function for strings:

http://www.w3schools.com/xpath/xpath_functions.asp#string[^]
 
Share this answer
 
You don't need XSLT 2.0.

HTML
<xsl:value-of select="translate(YourXPathHere, '. ', '')" />
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900