Apostrophe in Xslt

21/10/2013 14:09

Apostrophe in Xslt

 

Trying to render apostrophe ' with xslt - add apostrophes to string

- Unable to use ' named char in concat function

- Unable to use ' html escape in concat function

 

Only use what worked was direct or assigning to a variable as you see in 'withApos' variable

<xsl:variable name="myText">MyName</xsl:variable>


myText:<xsl:value-of select="$myText"/><br></br>


'<xsl:value-of select="$myText"/>'<br></br>


<xsl:variable name="withApos">'<xsl:value-of select="$myText"/>'nextWord&#39;<xsl:value-of select="$myText"/></xsl:variable>


withApos: <xsl:value-of select="$withApos"/><br></br>