XSLT转换xml为html不成功(新手真情提问)
source.xml如下
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/xsl" href="XBRL.xslt"?>
<group xmlns="http://www.xbrl.org/2001/instance" xmlns:nasdaq="http://www.nasdaq.com/xbrl/demo" xmlns:ci="http://www.xbrl.org/us/gaap/ci/2000-07-31" xmlns:link="http://www.xbrl.org/2001/XLink/xbrllinkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:msft="http://www.microsoft.com/msft/xbrl" xsi:schemaLocation="http://www.xbrl.org/2001/instance xbrl-instance.xsd http://www.nasdaq.com/xbrl/demo nasdaqdemo.xsd http://www.xbrl.org/us/gaap/ci/2000-07-31 us-gaap-ci-2001-v2-simplified.xsd http://www.microsoft.com/msft/xbrl MSFTv2_FY02.xsd">
<!-- SECTION: Entity Information -->
<ci:statements.entityInformation>
<ci:identifiers.entityName nonNumericContext="nNC4101">
ATMEL CORP
</ci:identifiers.entityName>
</ci:statements.entityInformation>
</group>
myStyle.xslt如下:
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="gb2312" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>
<xsl:value-of select="/group/ci:statements.entityInformation/ci:identifiers.entityName"/>
</title>
</head>
<body>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
就这样一个value-of都搞不定,在IE(6。0)上就出现这样的乱码:
0R*g餢f剉 T饄zz魰MR: 'ci'剉_(u0
我想请教高手们,
1.上面的错误在哪里?
2.有没有一种调试工具可以让自己清楚错在哪里,而不是浏览器上的乱码?
3.我下了一个XSLT Viewer,但用它老说:
The XSLT Viewer requires:
Internet Explorer Version 5 or above
IE Page
MSXML 3.0
MSXML
实际上我的条件全满足,最后去下了一个msxml4装了,还不行,不知何故?