Xml Xsl锚属性

Xml Xsl锚属性,xml,xslt,Xml,Xslt,我的xml文件代码如下: <?xml version="1.0" encoding="utf-8"?> <testimonials> <item> <author-name>xyz</author-name> <author-url>http://xyz.net</author-url> </item> <item>

我的xml文件代码如下:

    <?xml version="1.0" encoding="utf-8"?>

<testimonials>
    <item>
        <author-name>xyz</author-name>
        <author-url>http://xyz.net</author-url>
    </item>
    <item>
        <author-name>abcde</author-name>
        <author-url>http://abc.org</author-url>
    </item>

</testimonials>


当我尝试使用这些xml文件时,我没有得到锚定标记,我只是将文本输出视为

xyz abcde

如果我必须进行任何更改,以便能够看到锚定标签的更改,请告知我:

<xsl:template match="/xmlfile"> 

致:


<xsl:template match="/xmlfile"> 
<xsl:template match="/testimonials">