什么是:或者n1:在这个xslt样式表中呢?

Mik*_*ike 2 xml xslt

对不起,我是xslt的一个完整的菜鸟,可能会保持这种状态,但我想弄清楚以下内容a:n1:做法:

<xsl:value-of select="/n1:node/n1:anothernode"/>
Run Code Online (Sandbox Code Playgroud)

要么

<xsl:value-of select="a:anode/a:anothernode"/>
Run Code Online (Sandbox Code Playgroud)

谢谢!

Mar*_*nen 7

In a:anode a是名称空间前缀并且anode是本地名称,它们一起形成限定的元素名称.在样式表中查找xmlns:a="http://example.com/"名称空间声明.该路径a:anode选择样式表中anode前缀a绑定到的名称空间中具有本地名称的任何元素.