>    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:
>    &    -- &
>     '    -- '
>     >    -- >
>     <    -- &lt;
>     "    -- &quot;

Not true.  The only ones required are &lt; and &amp;

> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> <xsl:template match= "/" >
> <xsl:value-of select="&apos;" />
> </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?

"&apos;" is not a valid XPath expression.  You could do this:

   <xsl:value-of select='"&apos;"' />

or even:

   <xsl:template match= "/" >'</xsl:template>

Dave


Reply via email to