Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 XSLT 文件,在这个文件中有语句<xsl:value-of select = "."/>
<xsl:value-of select = "."/>
谁能告诉我是什么select = "."意思?
select = "."
如果我没记错的话,将在所描述的 xPath 处产生值select="xpath/selector"。<xsl:value-of />
select="xpath/selector"
<xsl:value-of />
如此处所述, .选择当前节点的方式与.选择文件系统路径中的当前文件夹的方式大致相同。
.
“。” 是当前节点 - 它的值取决于它正在处理的模板或 xslt 指令。