Thread: translate
View Single Post
  #2 (permalink)  
Old February 27th, 2007, 04:15 AM
bryanarcher bryanarcher is offline
Registered User
 
Join Date: Jan 2007
Location: Reading, , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Gantait,

You can use variables, for example:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:variable name="quot">&quot;</xsl:variable>
    <xsl:variable name="apos">&apos;</xsl:variable>
    <xsl:variable name="varVal">&quot; something &quot;</xsl:variable>

    <xsl:template match="/">
        <xsl:value-of select="translate($varVal, $quot, $apos)" /><br />
        <xsl:value-of select="$varVal" />

    </xsl:template>
</xsl:stylesheet>

Reply With Quote