我想创建一个结构来迭代,但它的内容应该是现有节点。像这样:
<xsl:variable name='my_structure'>
<rows-to-add>
<row>existing-node-with-a-specific-path</row>
<row>existing-node-with-a-specific-path</row>
</rows-to-add>
<rows-to-add>
<row>existing-node-with-a-specific-path</row>
<row>existing-node-with-a-specific-path</row>
<row>existing-node-with-a-specific-path</row>
</rows-to-add>
</xsl:variable>
所以我可以遍历 $my_structre 并应用一些逻辑。
那可能吗?