我正在循环查看节点的值。XSLT:如果节点= A,则设置B = 1否则B = 2
If Node = B, then B has one of two possible meanings.
--If Node = A has been previously found in the file, then the value for A
should be sent as 1.
--If Node = A has NOT been found in the file, the the value for A should
be sent as 2.
where file is the xml source to be transformed
我想不出如何做到这一点。如果我正在使用允许变量重新分配/更改的编程语言,那么很容易。但是,使用XSLT变量设置一次。
感谢您的回答,并介绍选择。但我想我没有清楚地解释我的问题。已发布另一个问题: XSLT:对于每个节点转换,如果A = 2和A = 1都找到了,那么可以这样做 – Larry 2010-03-19 15:41:47