html output genreated by the xsl should have a single quote
hi
i am trying to convert the xml into html .
For one particular field i need to invoke a javscript method on
click. a value has to be passed to this javascript method. for
this i need a single quote or a double quote to come in the
output.
<a href ="javascript:loadPage('Student')"/> is what my output
should look like but i ma getting it as
<a href ="javascript:loadPage('Student&apos)"/> which is
invalid.
i am constructing the string like
<xsl:variable name="pageName" select="'Student'"/>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat('javascript:loadPage
(',',$pageName,',')')"/>
</xsl:attribute>
Also i tried declaring a variable and using it instead of '
<xsl:varaible name="squote">'</xsl:variable>
how to overcome this problem ?