Joinery-oriented formatting specification for UBL Invoice instances
$Date: 2003/11/18 15:40:24 $(UTC)
1.
Invoice formatting specification
This formatting specification describes a rendering of an instance of the UBL Invoice document model according to a conceptual joinery-oriented layout.
For a list of all formatting specifications and an overview of the documentation conventions, please visit the formatting specification home page.
This specification has no formal status at this time. It should not be considered a reference interpretation of UBL documents. Feedback is sought from users of stylesheets that implement this formatting specification regarding suggestions for change for consideration by the OASIS UBL committees for incorporation into these formatting specifications.
Presentational semantics may never be formalized or normative in the UBL project due to differing international requirements and conventions for the presentation of information found in business documents. This document contains only examples from a few of what will probably be many available UBL stylesheet libraries.
1.2.
Example renderings and implementations
Example renderings:
1.3.
Layout order and information
Items in this formatting specification are ordered roughly from the laid out fields on the form in the order left-to-right, top to bottom.
Important: the rendering of a number of fields is very simplified, reflecting a Western European interpretation of a subset of fields (as in names and addresses). User requirements need to be better understood for the level of granularity in these formatting specifications.
The following namespaces are mapped to the prefixes in the expressions below:
2.
Miscellaneous information
The following information is unrelated to the visible fields of the form.
2.1.
Document header information
Table 1. XPath information
XPath addresses |
/in:Invoice/cat:ID |
/in:Invoice/cat:IssueDate |
This information shows up in the window-title bar of the HTML browser, and in the document title supported by some XSL-FO processors.
Header information is associated with the form as a whole, not
to the individual items of goods.
Table 2. XPath information
XPath address |
/in:Invoice/cat:ID |
Table 3. XPath information
XPath address |
/in:Invoice/cat:IssueDate |
Table 4. XPath information
XPath address |
/in:Invoice/in:TaxPointDate |
Table 5. XPath information
XPath address |
/in:Invoice/cat:OrderReference/cat:BuyersID |
Table 6. XPath information
XPath address |
/in:Invoice/cat:OrderReference/cat:IssueDate |
Table 7. XPath information
XPath address |
/in:Invoice/in:DespatchDocumentReference/cat:ID |
Table 8. XPath information
XPath addresses |
/in:Invoice/cat:BuyerParty/cat:Party/cat:PartyName/cat:Name |
/in:Invoice/cat:BuyerParty/cat:Party/cat:Address/cat:StreetName |
/in:Invoice/cat:BuyerParty/cat:Party/cat:Address/cat:CityName |
/in:Invoice/cat:BuyerParty/cat:Party/cat:Address/cat:CountrySubentity |
/in:Invoice/cat:BuyerParty/cat:Party/cat:Address/cat:PostalZone |
Table 9. XPath information
XPath addresses |
/in:Invoice/cat:SellerParty/cat:Party/cat:PartyName/cat:Name |
/in:Invoice/cat:SellerParty/cat:Party/cat:Address/cat:BuildingName |
/in:Invoice/cat:SellerParty/cat:Party/cat:Address/cat:CityName |
/in:Invoice/cat:SellerParty/cat:Party/cat:Address/cat:CountrySubentity |
/in:Invoice/cat:SellerParty/cat:Party/cat:Address/cat:PostalZone |
Table 10. XPath information
XPath address |
/in:Invoice/cat:SellerParty/cat:AccountsContact/cat:Name |
Table 11. XPath information
XPath address |
/in:Invoice/cat:Delivery/cat:ActualDeliveryDateTime |
Line item information is associated with the individual items of
the goods in the order.
Table 12. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine/cat:ID |
Table 13. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:SellersItemIdentification/cat:ID |
4.3. [Source of column headings]
Table 14. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:SellersItemIdentification/cat:PhysicalAttribute/cat:AttributeID |
4.4. [Values of columns with headings as above]
Table 15. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:SellersItemIdentification/cat:PhysicalAttribute/cat:DescriptionID |
Table 16. XPath information
XPath addresses |
/in:Invoice/cat:InvoiceLine/cat:InvoicedQuantity |
/in:Invoice/cat:InvoiceLine/cat:InvoicedQuantity/@unitCode |
Table 17. XPath information
XPath addresses |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:SellersItemIdentification/cat:MeasurementDimension/cat:Measure |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:SellersItemIdentification/cat:MeasurementDimension/cat:Measure/@unitCode |
Table 18. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:SellersItemIdentification/cat:MeasurementDimension/cat:AttributeID |
Table 19. XPath information
XPath addresses |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:BasePrice/cat:PriceAmount/@currencyID |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:BasePrice/cat:PriceAmount |
Table 20. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine/cat:Item/cat:TaxCategory/cat:ID |
Table 21. XPath information
XPath addresses |
/in:Invoice/cat:InvoiceLine/cat:LineExtensionAmount/@currencyID |
/in:Invoice/cat:InvoiceLine/cat:LineExtensionAmount |
Summary information is associated with the form as a whole, not
to the individual items of goods.
This field is not filled in at this time.
Table 22. XPath information
XPath address |
/in:Invoice/cat:TaxTotal/cat:TaxSubTotal/cat:TaxCategory/cat:TaxScheme/cat:TaxTypeCode |
Table 23. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine[cat:Item/cat:SellersItemIdentification/cat:ID='Delivery']/cat:Item/cat:BasePrice/cat:PriceAmount/@currencyID |
Table 24. XPath information
XPath addresses |
/in:Invoice/cat:AllowanceCharge/cat:MultiplierFactorQuantity |
/in:Invoice/cat:AllowanceCharge/cat:ReasonCode |
/in:Invoice/cat:AllowanceCharge/cat:ChargeIndicator |
Table 25. XPath information
XPath address |
/in:Invoice/cat:InvoiceLine[cat:Item/cat:SellersItemIdentification/cat:ID='Delivery']/cat:Item/cat:BasePrice/cat:PriceAmount/@currencyID |
Table 26. XPath information
XPath address |
/in:Invoice/cat:TaxTotal/cat:TaxSubTotal/cat:TaxCategory/cat:RatePercentNumeric |
Table 27. XPath information
XPath addresses |
/in:Invoice/cat:TaxTotal/cat:TaxSubTotal/cat:TaxAmount/@currencyID |
/in:Invoice/cat:TaxTotal/cat:TaxSubTotal/cat:TaxAmount |
Table 28. XPath information
XPath addresses |
/in:Invoice/cat:TaxTotal/cat:TotalTaxAmount/@currencyID |
/in:Invoice/cat:TaxTotal/cat:TotalTaxAmount |
5.9. Total Lines + Charges
Table 29. XPath information
XPath addresses |
/in:Invoice/cat:LegalTotal/cat:LineExtensionTotalAmount/@currencyID |
/in:Invoice/cat:LegalTotal/cat:LineExtensionTotalAmount |
Table 30. XPath information
XPath addresses |
/in:Invoice/cat:TaxTotal/cat:TaxSubTotal/cat:TaxableAmount/@currencyID |
/in:Invoice/cat:TaxTotal/cat:TaxSubTotal/cat:TaxableAmount |
Table 31. XPath information
XPath addresses |
/in:Invoice/cat:LegalTotal/cat:ToBePaidTotalAmount/@currencyID |
/in:Invoice/cat:LegalTotal/cat:ToBePaidTotalAmount |
Table 32. XPath information
XPath addresses |
/in:Invoice/cat:PaymentTerms/cat:Note |
/in:Invoice/cat:PaymentTerms/cat:SettlementDiscountRateNumeric |
/in:Invoice/cat:PaymentTerms/cat:SettlementPeriod/cat:StartDateTime |
/in:Invoice/cat:PaymentTerms/cat:SettlementPeriod/cat:DurationMeasure |
/in:Invoice/cat:PaymentTerms/cat:SettlementPeriod/cat:DurationMeasure/@unitCode |
Table 33. XPath information
XPath addresses |
/in:Invoice/cat:PaymentMeans/cat:PayeeFinancialAccount/cat:ID |
/in:Invoice/cat:PaymentMeans/cat:PayeeFinancialAccount/cat:Name |
/in:Invoice/cat:PaymentMeans/cat:PayeeFinancialAccount/cat:AccountTypeCode |
/in:Invoice/cat:PaymentMeans/cat:PayeeFinancialAccount/cat:FinancialInstitutionBranch/cat:ID |
/in:Invoice/cat:PaymentMeans/cat:PayeeFinancialAccount/cat:FinancialInstitutionBranch/cat:FinancialInstitution/cat:ID |