我正在循环遍历一个节点的值。
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中,变量只能设置一次。