也是xml的乱码问题,请各位大虾赐教!!!急!!!
a.t.t 问题点数:50、回复次数:5Top
1 楼saucer(思归)回复于 2002-05-17 22:45:29 得分 0
可能解决问题的方案
1。升级浏览器到IE6
2。改动文件,用encoding="gb2312"
3。清除浏览器缓存,按刷新
4。把你的XML文件贴出来Top
2 楼net_lover(【孟子E章】)回复于 2002-05-17 22:55:28 得分 0
用xmlspy打开Top
3 楼flyingsmile(根号3)回复于 2002-05-17 22:56:28 得分 0
<?xml version="1.0" encoding="GB2312" ?>
<?xml:stylesheet type="text/xsl" href="report.xsl" ?>
<document>
<report>
<class>甲班</class>
<q1>50</q1>
<q2>70</q2>
<q3>30</q3>
<q4>10</q4>
</report>
<report>
<class>乙班</class>
<q1>20</q1>
<q2>30</q2>
<q3>40</q3>
<q4>50</q4>
</report>
<report>
<class>丙班</class>
<q1>70</q1>
<q2>40</q2>
<q3>20</q3>
<q4>10</q4>
</report>
</document>
*********************************************
<?xml version="1.0" encoding="GB2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>1999年生产统计</TITLE>
</HEAD>
<BODY>
<xsl:apply-templates select="document"/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="document">
<H3>1999年生产统计</H3>
<TABLE border="1" cellspacing="0">
<TH>班组</TH>
<TH>
一季度
</TH>
<TH>
二季度
</TH>
<TH>
三季度
</TH>
<TH>
四季度
</TH>
<xsl:apply-templates select="report"/>
</TABLE>
</xsl:template>
<xsl:template match="report">
<TR>
<TD><xsl:value-of select="class"/></TD>
<TD><xsl:apply-template select="q1"/></TD>
<TD><xsl:apply-template select="q2"/></TD>
<TD><xsl:apply-template select="q3"/></TD>
<TD><xsl:apply-template select="q4"/></TD>
</TR>
</xsl:template>
<xsl:template match="q1|q2|q3|q4">
<!--此处测试产量,如小于等于20则添加STYLE属性color,其值为red(红色)-->
<xsl:if test=".[value()$le$20]">
<xsl:attribute name="style">color:red</xsl:attribute>
</xsl:if>
<xsl:value-of/>
</xsl:template>
</xsl:stylesheet>Top
4 楼flyingsmile(根号3)回复于 2002-05-17 22:56:30 得分 0
<?xml version="1.0" encoding="GB2312" ?>
<?xml:stylesheet type="text/xsl" href="report.xsl" ?>
<document>
<report>
<class>甲班</class>
<q1>50</q1>
<q2>70</q2>
<q3>30</q3>
<q4>10</q4>
</report>
<report>
<class>乙班</class>
<q1>20</q1>
<q2>30</q2>
<q3>40</q3>
<q4>50</q4>
</report>
<report>
<class>丙班</class>
<q1>70</q1>
<q2>40</q2>
<q3>20</q3>
<q4>10</q4>
</report>
</document>
*********************************************
<?xml version="1.0" encoding="GB2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>1999年生产统计</TITLE>
</HEAD>
<BODY>
<xsl:apply-templates select="document"/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="document">
<H3>1999年生产统计</H3>
<TABLE border="1" cellspacing="0">
<TH>班组</TH>
<TH>
一季度
</TH>
<TH>
二季度
</TH>
<TH>
三季度
</TH>
<TH>
四季度
</TH>
<xsl:apply-templates select="report"/>
</TABLE>
</xsl:template>
<xsl:template match="report">
<TR>
<TD><xsl:value-of select="class"/></TD>
<TD><xsl:apply-template select="q1"/></TD>
<TD><xsl:apply-template select="q2"/></TD>
<TD><xsl:apply-template select="q3"/></TD>
<TD><xsl:apply-template select="q4"/></TD>
</TR>
</xsl:template>
<xsl:template match="q1|q2|q3|q4">
<!--此处测试产量,如小于等于20则添加STYLE属性color,其值为red(红色)-->
<xsl:if test=".[value()$le$20]">
<xsl:attribute name="style">color:red</xsl:attribute>
</xsl:if>
<xsl:value-of/>
</xsl:template>
</xsl:stylesheet>Top
5 楼saucer(思归)回复于 2002-05-17 23:07:19 得分 50
1.
<TD><xsl:apply-templates select="q1"/></TD>
<TD><xsl:apply-templates select="q2"/></TD>
<TD><xsl:apply-templates select="q3"/></TD>
<TD><xsl:apply-templates select="q4"/></TD>
2.
<xsl:if test=". < 20">
<xsl:attribute name="style">color:red</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
Top




