哪位高手帮忙转换下这个XML的XSL

来源:百度知道 编辑:UC知道 时间:2024/05/12 06:40:11
XML如下,要求选出年龄在25-40岁之间并精通数据库的人物信息以表格形式表现。我不会写XSL中的多个选择条件的测试语句,哪位高手帮下忙哦
<?xml version="1.0" encoding="GB2312"?>
<all>
<information>
<name>张三</name>
<sex>男</sex>
<age>23</age>
<skill>数据库</skill>
<skill>XSL</skill>
<skill>汇编语言</skill>
</information>
<information>
<name>李岚</name>
<sex>女</sex>
<age>27</age>
<skill>打字</skill>
</information>
<information>
<name>王武</name>
<sex>男</sex>
<age>45</age>
<skill>数据库</skill>
<skill>web编程</skill>
<skill

<?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/>
<body>
<table border="1">
<tr>
<th>name</th>
<th>sex</th>
<th>age</th>
<th>skill</th>
</tr>
<xsl:apply-templates select="all/information[age>25 and 40>age]"/>
</table>
</body>
</html>
</xsl:template>

<xsl:template match="all/information[age>25 and 40>age]">
<tr>
<td><xsl:value-of select="name"/></td>
<