Office-oriented formatting specification for UBL Invoice example instance
$Date: 2004/04/20 21:48:35 $(UTC)
1.
Invoice formatting specification
This formatting specification describes a rendering of an instance of the UBL Invoice document model according to a conceptual office-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.
The following is an example rendering that illustrates the position and decoration of the information items found in an instance of the document type:
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 stylesheets.
The following namespaces are mapped to the prefixes in the expressions below:
cac = "urn:oasis:names:tc:ubl:CommonAggregateComponents:1:0"
cbc = "urn:oasis:names:tc:ubl:CommonBasicComponents:1:0"
in = "urn:oasis:names:tc:ubl:Invoice:1:0"
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/in:ID |
/in:Invoice/cbc: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/in:ID |
Table 3. XPath information
XPath address |
/in:Invoice/cbc:IssueDate |
Table 4. XPath information
XPath address |
/in:Invoice/in:TaxPointDate |
Table 5. XPath information
XPath address |
/in:Invoice/cac:OrderReference/cac:BuyersID |
Table 6. XPath information
XPath address |
/in:Invoice/cac:OrderReference/cac:SellersID |
Table 7. XPath information
XPath addresses |
/in:Invoice/cac:BuyerParty/cac:Party/cac:PartyName/cbc:Name |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:StreetName |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:CityName |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:PostalZone |
Table 8. XPath information
XPath addresses |
/in:Invoice/cac:SellerParty/cac:Party/cac:PartyName/cbc:Name |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:StreetName |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:CityName |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:PostalZone |
Table 9. XPath information
XPath addresses |
/in:Invoice/cac:SellerParty/cac:AccountsContact/cbc:Name |
/in:Invoice/cac:SellerParty/cac:AccountsContact/cbc:Telephone |
Table 10. XPath information
XPath addresses |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:StreetName |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:BuildingName |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:CityName |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cac:CountrySubentityCode |
Table 11. XPath information
XPath address |
/in:Invoice/cac:Delivery/cbc:ActualDeliveryDateTime |
Line item information is associated with the individual items of
the goods in the order.
Table 12. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:ID |
Table 13. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:SellersItemIdentification/cac:ID |
Table 14. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:Item/cbc:Description |
Table 15. XPath information
XPath addresses |
/in:Invoice/cac:InvoiceLine/cbc:InvoicedQuantity |
/in:Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@quantityUnitCode |
Table 16. XPath information
XPath addresses |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:BasePrice/cbc:PriceAmount/@amountCurrencyID |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:BasePrice/cbc:PriceAmount |
Table 17. XPath information
XPath addresses |
/in:Invoice/cac:InvoiceLine/cbc:LineExtensionAmount/@amountCurrencyID |
/in:Invoice/cac:InvoiceLine/cbc: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 18. XPath information
XPath address |
/in:Invoice/cac:TaxTotal/cac:TaxSubTotal/cac:TaxCategory/cac:TaxScheme/cac:TaxTypeCode |
Table 19. XPath information
XPath address |
/in:Invoice/cac:TaxTotal/cac:TaxSubTotal/cac:TaxCategory/cbc:Percent |
Table 20. XPath information
XPath addresses |
/in:Invoice/cac:TaxTotal/cac:TaxSubTotal/cbc:TaxAmount/@amountCurrencyID |
/in:Invoice/cac:TaxTotal/cac:TaxSubTotal/cbc:TaxAmount |
Table 21. XPath information
XPath addresses |
/in:Invoice/cac:TaxTotal/cbc:TotalTaxAmount/@amountCurrencyID |
/in:Invoice/cac:TaxTotal/cbc:TotalTaxAmount |
Table 22. XPath information
XPath addresses |
/in:Invoice/cac:TaxTotal/cac:TaxSubTotal/cbc:TaxableAmount/@amountCurrencyID |
/in:Invoice/cac:TaxTotal/cac:TaxSubTotal/cbc:TaxableAmount |
Table 23. XPath information
XPath addresses |
/in:Invoice/cac:LegalTotal/cbc:TaxExclusiveTotalAmount/@amountCurrencyID |
/in:Invoice/cac:LegalTotal/cbc:TaxExclusiveTotalAmount |
Table 24. XPath information
XPath addresses |
/in:Invoice/cac:LegalTotal/cbc:TaxInclusiveTotalAmount/@amountCurrencyID |
/in:Invoice/cac:LegalTotal/cbc:TaxInclusiveTotalAmount |
Table 25. XPath information
XPath address |
/in:Invoice/cac:PaymentTerms/cbc:Note |