[xslt] what's xslt wrong



I have the following xst and xml.
xml:
<?xml version="1.0" encoding="BIG5"?>
<lockdoc>
        <lockacc>
                <lockdate>06-Aug-2001</lockdate>
                <name>王力</name>
        </lockacc>
        <lockacc>
                <lockdate>12-Aug-2001</lockdate>
                <name>立朋</name>
        </lockacc>
</lockdoc>
---------------------
xsl:
<?xml version="1.0" encoding="BIG5"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="lockacc">
<fmtinfo><xsl:value-of select="name"/>,your account
has been locked on<xsl:value
-of select="locktime"/></fmtinfo>
</xsl:template>
</xsl:stylesheet>
---------------------------
I expect the result:
<?xml version="1.0"?>

        <fmtinfo>王力,your account has been locked
on</fmtinfo>
        <fmtinfo>立朋,your account has been locked
on</fmtinfo>

---------------------------------------
but get :
<?xml version="1.0"?>

        <fmtinfo>&#x537C;&#x85AF;,your account has
been locked on</fmtinfo>
        <fmtinfo>&#x857E;&#x652C;,your account has
been locked on</fmtinfo>

---------------------------------------
what's wrong?,please help, maybe it's simple,but it
has costed me several days





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]