creating arrays in xslt

后端 未结 5 1712
日久生厌
日久生厌 2020-12-30 21:55

can array\'s be created and used in xslt? If so are there suitable examples online to study? If not is there a way to store values in a way that mimics an array?

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 22:15

    No, not as such. The closest concept is node-sets, which are collections of nodes. Whenever the result of a select is a number of nodes, you get a node-set. These can be accessed with a index notation (starting with 1), so the first element of the node-set can be accessed with notation such as selectedNodes[1].

提交回复
热议问题