O
Oleg Konovalov
Hi,
I am new to XSLT, trying to fix a bug in somebody else's XSL transformer [it
is XSLT1.x code, part of Cocoon2.0 app].
The logic of the code goes like that (in all cases filling in one XML
structure mystruct):
....
<xml:if (condition1)
<mystruct>..block1..</mystruct>
</xml:if>
<mystruct>..block2..</mystruct>
<xml:if (condition3)
<mystruct>..block3..</mystruct>
</xml:if>
.....
Does it seem fishy to you (no "else" or "choose/when/otherwise") ?
I am trying to understand when block2 is executed
and whether condition1, no-condition, condition3 become mutually exclusive.
Or should I read it as I would do it normal languages (C/C++ or Java) ?
Please advise.
Thank you in advance,
Oleg.
I am new to XSLT, trying to fix a bug in somebody else's XSL transformer [it
is XSLT1.x code, part of Cocoon2.0 app].
The logic of the code goes like that (in all cases filling in one XML
structure mystruct):
....
<xml:if (condition1)
<mystruct>..block1..</mystruct>
</xml:if>
<mystruct>..block2..</mystruct>
<xml:if (condition3)
<mystruct>..block3..</mystruct>
</xml:if>
.....
Does it seem fishy to you (no "else" or "choose/when/otherwise") ?
I am trying to understand when block2 is executed
and whether condition1, no-condition, condition3 become mutually exclusive.
Or should I read it as I would do it normal languages (C/C++ or Java) ?
Please advise.
Thank you in advance,
Oleg.