|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: translate one char to 2 or more chars
Hi,
I had the same problem but with the character '.
I wrote a javascript function with a text as a parameter,
and if this text contained the ' caracter it caused an
error in the browser so I found this solution:
<xsl:elem name="span">
<xsl:attribute name="id">elem</xsl:attribute>
<xsl:variable name="char">'</xsl:variable>
<xsl:variable name="apos">‘</xsl:variable>
<xsl:attribute name="onMouseOver">script-function('<xsl:value-of
elect="translate($text_with_char,$char,$apos)"/>'); </xsl:attribute>
</xsl:elem>
I don't know if it is the best way to do it but it works
fine in xt, it generates the output that I was expecting.
Hope it helps,
Marta Lobato.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








