[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Preoccupation with zero, empty strings, empty elements, empty everything
- From: gkholman@CraneSoftwrights.com
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Sat, 07 Dec 2013 19:59:58 -0500
At 2013-12-07 14:38 -0500, John Cowan wrote:
On Sat, Dec 7, 2013 at 1:10 PM,
<<mailto:gkholman@cranesoftwrights.com>gkholman@cranesoftwrights.com> wrote:
Â
Â
<http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#S-EMPTY-ELEMENTS>http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#S-EMPTY-ELEMENTS
 "UBL takes the position that empty elements do not provide the level
  of assurance necessary for business information exchanges and
  therefore must not be used."
... and have reduced the requirement to the following rules:
  [IND5] UBL conformant instance documents MUST NOT contain an
     element devoid of content or containing null values,
     except in the case of extension, where the UBL
     ExtensionContent element is used.
The full rationale doesn't seem to exclude the
use of inherently empty elements (those with a
content model of EMPTY) that have attributes, yet the rule does.
Except that none of our elements are inherently
empty and so the situation is not
encountered. Every data item (simple content
element) is based on one of a selection of data
type representations, none of which provides for an empty value.
  [IND6] The absence of a construct or data in a UBL instance
     document MUST NOT carry meaning.
In that case, how does one express the notions "data unavailable"
and "data does not exist" in UBL?
If an invoice, say, doesn't have a Note, then it
just doesn't have a <cbc:Note> element. But that
is merely a property of the invoice that it
doesn't have a note ... there are no business
decisions leveraged on the absence of a note. We
encouraged the business analysts on the team to
design the document objects to be declarative
such that everything is manifest with no
interpretation needed of absent content as that
would presume the recipient and the sender agreed
upon what the absence meant. Whereas when an
element exists, its definition is part of the UBL standard.
I'll talk with my committee colleagues to get some specific examples.
. . . . . . . . Ken
--
Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/x/ |
G. Ken Holman mailto:gkholman@CraneSoftwrights.com |
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
- References:
- Preoccupation with zero, empty strings, empty elements, emptyeverything
- From: "Costello, Roger L." <costello@mitre.org>
- Re: [xml-dev] Preoccupation with zero, empty strings, empty elements, empty everything
- From: gkholman@CraneSoftwrights.com
- Re: [xml-dev] Preoccupation with zero, empty strings, empty elements,empty everything
- From: John Cowan <johnwcowan@gmail.com>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]