[xslt] what's xslt wrong
- From: =?gb2312?q?Tom=20Stanley?= <stdanley yahoo com>
- To: xslt gnome org
- Subject: [xslt] what's xslt wrong
- Date: Sat, 19 Jan 2002 16:46:39 +0800 (CST)
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>卼薯,your account has
been locked on</fmtinfo>
<fmtinfo>蕾攬,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]