开发者

how to get variable data out side of when condition

开发者 https://www.devze.com 2023-04-09 04:27 出处:网络
i declare a variable name as Result1 this variable i have used in when conditions so that variable i want to used out side of when condition. facing issues as variable name as OUT of scope , to reso

i declare a variable name as Result1 this variable i have used in when conditions

so that variable i want to used out side of when condition. facing issues as variable name as OUT of scope , to resolve this issue can we declare a global variable as gblresult. how w开发者_JAVA技巧e can pass result1 content to gblresult, but i dont know how to implement. kindly suggest me some thing


Is this perhaps what you want?

<xsl:variable name="result">
   <xsl:choose>
     <xsl:when test="...">...</xsl:when>
     <xsl:when test="...">...</xsl:when>
     ...
   </xsl:choose>
</xsl:variable>
<!-- use variable result here-->
0

精彩评论

暂无评论...
验证码 换一张
取 消