xsl的问题
我试图用以下的xsl 解析 xml文档, 获得所有title的值。但和预期不符,为什么?环境是xmlspy2004。并且xpath://title 的估值也对的
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:template match="//title">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
/////////////////////////////////////////////////////////////////////
<?xml version="1.0"?>
<books>
<book category="reference">
<author>Nigel Rees</author>
<title>Sayings of the Century</title>
<price>8.95</price>
</book>
<book category="fiction">
<author>Evelyn Waugh</author>
<title>Sword of Honour</title>
<price>12.99</price>
</book>
<book category="fiction">
<author>Herman Melville</author>
<title>Moby Dick</title>
<price>8.99</price>
</book>
<book category="fiction">
<author>J. R. R. Tolkien</author>
<title>The Lord of the Rings</title>
<price>22.99</price>
</book>
</books>