给出此XML
<some>
<where>
<in>
<hell></hell>
</in>
</where>
</some>
和此XSLT
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" />
<xsl:template match="in">
this is a <xsl:value-of select="name()"/>
this is a <xsl:value-of select="ancestor::where/name()"/>
</xsl:template>
</xsl:stylesheet>
第一个value-of
返回“ in”;第二个是语法错误。我本来希望看到"where"
,但是在这里我无法开始理解语法。