【发布时间】:2015-02-19 13:40:22
【问题描述】:
我有以下 xml 文件
<htmlResponses>
<resultSet></resultSet>
<referencePoint></referencePoint>
<htmlResponse></htmlResponse>
<htmlResponse></htmlResponse>
<htmlResponse></htmlResponse>
</htmlResponses>
我想在一个 xsl 变量中获取节点“htmlResponse”集合,这样我就可以使用 XSLT 循环遍历它。 谁能指导我如何实现这一目标?
【问题讨论】:
-
一般不需要使用变量。如果您的 xslt 中有一个 '',它将自动处理所有 htmlResponse 节点。还是您需要更具体的内容?