Uploaded image for project: 'OASIS Universal Business Language (UBL) TC'
  1. OASIS Universal Business Language (UBL) TC
  2. UBL-263

Discussion of XPath BBIE definition

    XMLWordPrintable

    Details

      Description

      It has been proposed to change the definition of the existing XPath BBIE.

      This is the example that was being discussed on the 2019-10-23 call:

      <?xml version="1.0" encoding="UTF-8"?>
      <Invoice>
        <ID>INV1234</ID>
        <Information>
          <DocumentReference>
            <ID>PO9876</ID>
            <IssueDate>2019-10-20</IssueDate>
            <DocumentTypeCode>PO</DocumentTypeCode>
            <VersionID>3</VersionID>
            <DocumentStatusCode>Approved</DocumentStatusCode>
            <DocumentDescription>The purchase order</DocumentDescription>
          </DocumentReference>
        </Information>
        <OtherInformation>
          <DocumentReference>
            <ID>PO9876</ID>
            <XPath>/Invoice/Information[1]/DocumentReference[1]</XPath>
          </DocumentReference>
        </OtherInformation>
      </Invoice>
      
      <!--
      Current definition:
      
        A reference to another place in the same XML document instance in which
                       \=============================================/  |
                                 ^                                      |
                                 |                                      |
                                 `––––––––––––––––––––––––––––––––––––––'
       DocumentReference appears. 
      
      Do we need an additional BBIE?
      
        ReferencedDocumentXPath - A reference to a place found within the referenced document.
      -->
      

      It was noted in the meeting that the same result is effected by changing the document being referenced to be the self and changing the definition:

       

        <OtherInformation>
          <DocumentReference>
            <ID>INV1234</ID>
            <XPath>/Invoice/Information[1]/DocumentReference[1]</XPath>
          </DocumentReference>
        </OtherInformation>
      

       

        Attachments

          Activity

            People

            • Assignee:
              kenneth.bengtsson Kenneth Bengtsson
              Reporter:
              gkholman Ken Holman
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: