xslt 1.0 从变量中的动态节点集获取数据

问题描述 投票:0回答:0

一个变量被用来存储相关的记录信息

变量已更新为根据比赛结果动态选择,

例如

<xsl:variable name="SO">
            <xsl:choose>
                <xsl:when/>
                <xsl:otherwise/>

            </xsl:choose>
        </xsl:variable>

这是可行的,因为 counting 变量返回(使用节点集函数检查结果树片段)

当试图访问变量中节点集中的字段时,我不再能够

例如,UniqueId 字段存在于创建变量的原始文档中 但是使用时没有返回值

<xsl:value-of select="string(msxsl:node-set($SO)/UniqueId)"/>

这有意义吗?!
在节点集的变量中选择 when 这可能吗?!
我做错了什么?!

提前致谢!

xslt-1.0 node-set xsl-choose xsl-variable
© www.soinside.com 2019 - 2024. All rights reserved.