2023 Jan 10 4:06 PM
Hi all,
I am using transformations for XML to serialize and deserialize a XML file.Here a snippet from the definition:
<tt:group>
<tt:cond frq="?">
<cac:Price>
<tt:cond check="not-initial($INVL.PRICE.PRICE_AMOUNT) and ($INVL.PRICE.PRICE_AMOUNT > 0.00)">
<cbc:PriceAmount>
<tt:attribute name="currencyID" value-ref="$INVL.PRICE.PRICE_CURRENCY"/>
<tt:value ref="$INVL.PRICE.PRICE_AMOUNT"/>
</cbc:PriceAmount>
</tt:cond>
</cac:Price>
</tt:cond>
</tt:group>
($INVL.PRICE.PRICE_AMOUNT > 0.00)
not an integer: '0.00'
2023 Jan 10 4:31 PM
Packed constants must be wrapped within P(...):
<tt:cond check="SOMETHING > P(0.00)">
2023 Jan 10 4:31 PM
Packed constants must be wrapped within P(...):
<tt:cond check="SOMETHING > P(0.00)">
2023 Jan 10 4:58 PM
I tried
<tt:cond check="$INVL.PRICE.PRICE_AMOUNT > P(0.00)">
Unfortunately, I have got XT: "Check failed in condition".
2023 Jan 10 5:07 PM
My answer corresponds to the question you had.
I can't help on runtime issues without context.