【发布时间】:2010-03-19 00:36:05
【问题描述】:
我正在循环查看节点的值。
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 变量设置一次。
【问题讨论】: