xpath discrepancy in UBL bt-110 and bt-111 templates
ubl-creditnote-xr.xsl
<xsl:apply-templates mode="BT-110"
select="/CreditNote:CreditNote/cac:TaxTotal/cbc:TaxAmount"/>
<xsl:apply-templates mode="BT-111"
select="/CreditNote:CreditNote/cac:TaxTotal/cbc:TaxAmount"/>
Syntaxbinding:
BT-110 /CreditNote/cac:TaxTotal/cbc:TaxAmount
BT-111 /CreditNote/cac:TaxTotal/cbc:TaxAmount
BT-111 mandatory attribute /CreditNote/cac:TaxTotal/cbc:TaxAmount/@currencyID
ubl-invoice-xr.xsl
<xsl:apply-templates mode="BT-110"
select="/Invoice:Invoice/cac:TaxTotal/cbc:TaxAmount[/Invoice:Invoice/cbc:DocumentCurrencyCode = @currencyID]"/>
<xsl:apply-templates mode="BT-111"
select="/Invoice:Invoice/cac:TaxTotal/cbc:TaxAmount[/Invoice:Invoice/cbc:TaxCurrencyCode = @currencyID]"/>
Syntaxbinding:
BT-110 /Invoice/cac:TaxTotal/cbc:TaxAmount
BT-111 /Invoice/cac:TaxTotal/cbc:TaxAmount
BT-111 mandatory attribute /Invoice/cac:TaxTotal/cbc:TaxAmount/@currencyID
BT-6 "VAT accounting currency code" is the currency valid or required in the seller country and is to be used with BT-111 "Invoice total VAT amount in accounting currency" (according to BR-53).
Edited by Barbara Dewein