XSLT Question: Replace a space with a special char
This is an open discussion with 5 replies, filed under XSLT.
Search
Can you give an example?
Did you mean like this?
<xsl:variable name="spaces" select="translate($subject, '+', ' ')" />
This replaces all instances of + with a space in the variable named “subject”.
Sorry! Have problems to describe this problem… But scottkf give the solution Thank you for that! The translate can also be combined with
<xsl:value-of select="translate($sunject,'+',' ')" />
i applied both underline and strike-through for text in ODT file..while reading its content.xml, i cant write template in xslt to make both styles to appear in output html..can anyone guide me
You’ll have to be a bit more specific. Please pastie your XML and XSLT and someone will try to help.
Create an account or sign in to comment.
Hi Im currently using Symphony get some data in XML (for list wich will be layouted with InDesign) So i have a field called wich are seperated by spaces. I want to transform the spaces to a on-quarter of an em space wich ist special char
I really dont know how to do it. I guess it will be possible! Can somebody help`?