通过xsl转换后显示不出table的问题
有两个文件:第一个是xml文件,第二个是xsl文件
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="F:\workspace\javaWebProject\WebContent\endangered_species.xsl"?>
<!-- edited with XMLSpy v2008 rel. 2 sp2 (http://www.altova.com) by xdowns.com (xdowns) -->
<tns:endangered_species xmlns:tns="http://www.example.org/NewXMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/NewXMLSchema
F:\workspace\javaWebProject\WebContent\NewXMLSchema.xsd">
<tns:animals>
<tns:animal>
<tns:name language="English">Tiger</tns:name>
<tns:name language="Latin">panthera tigris</tns:name>
<tns:threats>Poachers Habitat</tns:threats>
<tns:threats>destruction</tns:threats>
<tns:threats>Trad in tiger bones</tns:threats>
<tns:weight>500 pounds</tns:weight>
<tns:length>3 yards from nose to tail</tns:length>
<tns:source sectionid="120" newspaperid="21"/>
<tns:picture filename="tiger" x="200" y="197"/>
<tns:all_sbuspecies>
<tns:subspecies>
<tns:name language="English">Amur or Siberian</tns:name>
<tns:name language="Latin">P.t.altaica</tns:name>
<tns:region>Far East Russia</tns:region>
<tns:population year="1999">445</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Balian</tns:name>
<tns:name language="Latin">balica</tns:name>
<tns:region>Bail</tns:region>
<tns:population year="1937">30</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Javan</tns:name>
<tns:name language="Latin">sondaica</tns:name>
<tns:region>Java</tns:region>
<tns:population year="1972">20</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Caspian</tns:name>
<tns:name language="Latin">virgata</tns:name>
<tns:region>Caspian Sea</tns:region>
<tns:population year="1950">12</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Bengal</tns:name>
<tns:name language="Latin">P.t.tigris</tns:name>
<tns:region>India</tns:region>
<tns:population year="1999">3159</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Sumatran</tns:name>
<tns:name language="Latin">P.t.sumatrae</tns:name>
<tns:region>Bangladesh</tns:region>
<tns:population year="1999">400</tns:population>
</tns:subspecies>
</tns:all_sbuspecies>
</tns:animal>
<tns:animal>
<tns:name language="English">Black Rhino</tns:name>
<tns:name language="Latin">diceros bicornis</tns:name>
<tns:threats>Poaching for rhino horn</tns:threats>
<tns:threats>habita destruction</tns:threats>
<tns:weight>Unknown</tns:weight>
<tns:length>Unknown</tns:length>
<tns:source sectionid="101" newspaperid="21"/>
<tns:picture filename="rhino.jpg" x="200" y="158"/>
<tns:all_sbuspecies>
<tns:subspecies>
<tns:name language="English">Southern Black Rhino</tns:name>
<tns:name language="Latin">S.b.minor</tns:name>
<tns:region>Zimbabwe and South</tns:region>
<tns:population year="1999">1365</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Southwestern</tns:name>
<tns:name language="Latin">S.b.bicornis</tns:name>
<tns:region>Namibia</tns:region>
<tns:population year="1999">740</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Easstern</tns:name>
<tns:name language="Latin">D.b.michaeli</tns:name>
<tns:region>Kenya(Ethiopia and Rwanda)</tns:region>
<tns:population year="1999">485</tns:population>
</tns:subspecies>
<tns:subspecies>
<tns:name language="English">Northweatern</tns:name>
<tns:name language="Latin">D.b.longipes</tns:name>
<tns:region>Cameroon</tns:region>
<tns:population year="1999">10</tns:population>
</tns:subspecies>
</tns:all_sbuspecies>
</tns:animal>
</tns:animals>
</tns:endangered_species>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="endangered_species/animals/animal"/>
</xsl:template>
<xsl:template match="animal">
<html><body>
<p align="center">
<br>
<font size="3">
<xsl:apply-templates select="name"/>
</font>
</br>
</p>
<table border="2">
<tbody>
<tr>
<th>Subspecies</th>
<th>Region</th>
<th>Number Left</th>
<th>As Of</th>
</tr>
<xsl:for-each select="all_subspecies/subspecies"/>
<tr>
<td><xsl:apply-templates select="name"/></td>
<td><xsl:value-of select="region"/></td>
<td><xsl:apply-templates select="population"/></td>
<td><xsl:value-of select="population/@year"/></td>
</tr>
</tbody>
</table>
<p>
The mighty<xsl:value-of select="name[@language='English']"/>faces numerous threats.For more information,check out the World Widelife Federation's<a href="www.zq1987_9_7@yahoo.cn"/>pages
</p>
</body></html>
</xsl:template>
<xsl:template match="name[@language='English']">
<nobr>
<b>
<xsl:value-of select="."/>:
</b>
</nobr>
</xsl:template>
<xsl:template match="name[@language='Latin']">
<nobr>
<i>
<xsl:value-of select="."/>
</i>
</nobr>
</xsl:template>
</xsl:stylesheet>
第二个xsl文件中的table显示不出来,是怎么回事啊?