如何在Xslt中重置变量 [英] How do I reset a variable in Xslt

查看:138
本文介绍了如何在Xslt中重置变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1。如何在变量中给出初始值。

2.然后在循环结构中重置它在XSLT 1.0中

1. How to give an initial value in a variable.
2. and then reset it within a looping structure In XSLT 1.0

推荐答案

简答题? XSLT中的变量只写一次,因此您无法在初始赋值后更改该值。



考虑xsl:param或xsl:variable元素的最佳方法是,一旦将参数与名称和内容相关联,该元素就是不可变的;



来自 MSDN [ ^ ]
Short answer? Variables in XSLT are write once only so you can't change the value after the initial assignment.

"The best way to think about an xsl:param or an xsl:variable element is that once you associate a parameter with a name and content, that element is immutable;"

From MSDN[^]


这篇关于如何在Xslt中重置变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆