using preceding-sibling with with xsl:sort

后端 未结 3 1273
暗喜
暗喜 2020-12-21 09:22

I\'m trying to use preceding-sibling and following-sibling with a subset of records with a sort on them. The problem that the preceding / following brings back values from t

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-21 09:48

    The preceding-sibling axis gets the preceding siblings of the context node in document order.

    To refer to the preceding siblings of a node after sorting, you will need to store the sorted nodes in a variable first - and, in XSLT 1.0, convert the variable into a node-set.

提交回复
热议问题