/**
Xml与xsl的综合应用,对符合条件的数据进行换值和换颜色的显示。主要的函数调用是:
<xsl:if test=”.[value()$ge$40]”>
<xsl:attribute name=”style”>color:red</xsl:attribute>
</xsl:if>

<xsl:choose>
<xsl:when test=”.[value()$le$100]”>优秀</xsl:when>
<xsl:otherwise>不优秀</xsl:otherwise>
</xsl:choose>
*/
Document.xml
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/xsl" href="document.xsl"?>
<document>
<resume>
<name>大象</name>
<age>88</age>
<english>59</english>
<math>68</math>
<language>99</language>
</resume>
<resume>

本文介绍如何使用XML存储动物的成绩单数据,并通过XSL进行样式化显示。具体包括使用条件语句改变特定数据的颜色及内容转换。

716

被折叠的 条评论
为什么被折叠?



