关于的用法
yoken 2003-08-25 05:15:06 authors.xml
<?xml version="1.0"?>
<authors>
<author id="0">
<name lang="Eng">Mike Galos</name>
<nationality>French</nationality>
</author>
<author id="1" period="modern">
aaa
<name>Eva Corets</name>
<nationality>British</nationality>
</author>
<author id="2" period="modern">
<name>Cynthia Randall</name>
<nationality>Canadian</nationality>
</author>
<author id="3">
<name>Stefan Knorr</name>
<nationality>Canadian</nationality>
</author>
<author id="4" period="contemporary">
<name>Paula Thurman</name>
<nationality>British</nationality>
</author>
</authors>
test.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/authors/author/name">
<xsl:copy>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
xmlspy中transform的结果
<?xml version="1.0" encoding="UTF-8"?><name/>French
aaa
<name/>British<name/>Canadian<name/>Canadian<name/>British
为什么结果中还有nationality的内容
如何使结果中<name>带有其原来的值,如 <name>Eva Corets</name>,而非只有<name/>