获取XML中属性的值

如何使用xslt在以下xml中获取attribute1(blah)的值:

<name attribute1=“blah”attribute2=“blahblah”>
&lt/名称>

这更像是一个xpath问题,但与此类似,假设上下文是父元素:

<xsl:select=“name/@attribute1”/>

发表评论