-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I'm calling:
XPath2Expression.Compile(foo, nsManager);where
string foo is:
not(../../cbc:InvoicedQuantity or ../../cbc:CreditedQuantity) or @unitCode = if (/ubl:Invoice) then ../../cbc:InvoicedQuantity else ../../cbc:CreditedQuantity/@unitCodeoriginating from a schematron:
<!-- Price -->
<rule context="cac:Price/cbc:BaseQuantity[@unitCode]">
<let name="hasQuantity" value="../../cbc:InvoicedQuantity or ../../cbc:CreditedQuantity" />
<let name="quantity" value=" if (/ubl:Invoice) then ../../cbc:InvoicedQuantity else ../../cbc:CreditedQuantity" />
<assert id="PEPPOL-EN16931-R130" test="not($hasQuantity) or @unitCode = $quantity/@unitCode" flag="fatal">Unit code of price base quantity MUST be same as invoiced quantity.</assert>
</rule>(trying to figure out if the error is in schematron implementation or this library 🤓 😕 )
Metadata
Metadata
Assignees
Labels
No labels