Hallo everyone,
I hope, I am correct with my interpretation:
HTML Code:
<xsl:with-param name="myVar" select="not(./RatnasTag/Gender/text() = 'boy')" />
The input xml looks like this:
HTML Code:
...
<RatnasTag>
<Gender>girl</Gender>
</RatnasTag>
<OtherTag>
<OtherChildTag>value</OtherChildTag>
</OtherTag>
<RatnasTag>
<Gender>boy</Gender>
</RatnasTag>
I was expection $myVar to be "false". But this is not the case. Instead, the value of $myVar is just null-String. I think, the parser ist confused, because:
1. On one side, it is true, that there is no "boy" in RatnasTag
2. On the other side, it is false that there is really no "boy" in RatnasTag
How can I code, so that it will become:
Set $value to be "false" if there is no "boy" in the whole xml.
Thank you for your help.
Regards,
Ratna
Germany
