> Here is an problem about the character entity. We know the following characters must be replaced with their character entities when existing in > the content of a node: > & -- & > ' -- ' > > -- > > < -- < > " -- "
Not true. The only ones required are < and & > <xsl:stylesheet > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > <xsl:template match= "/" > > <xsl:value-of select="'" /> > </xsl:template> > </xsl:stylesheet> > > the version of xalan is xalan-j_2_2_D14. > So who know the reason? and how can I add single quote into the content of a node? "'" is not a valid XPath expression. You could do this: <xsl:value-of select='"'"' /> or even: <xsl:template match= "/" >'</xsl:template> Dave
