W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2012

Re: Sometimes an empty value means "use the default value" and sometimes it doesn't ... right?

From: Costello, Roger L. <costello@mitre.org>
Date: Thu, 23 Aug 2012 19:32:52 +0000
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <B5FEE00B53CF054AA8439027E8FE17751E62FB13@IMCMBX04.MITRE.ORG>
Ken, Hello,

Sorry, I was not clear in my message.

I was not asking a question about semantics or meaning.

I was asking a question about the behavior of XML Schema validators.

Hopefully this question will be clearer:

    The XML Schema validator determines the
    value of the empty Altitude element
     to be the default, 100.

    The XML Schema validator determines the
    value of the empty Title element
     to not be the default; instead the value
    is the empty string.

Right?

/Roger


At 2012-08-23 19:04 +0000, Costello, Roger L. wrote:
>Thus sometimes an empty value means "use the default value" and 
>sometimes it doesn't.  Right?

What something "means" is up to the semantics of the applications 
that act on the content, and to the vocabulary designers who are 
trying to impose common understandings of use amongst those employing 
the vocabulary.

To add to your list, in UBL an empty value means "error" ... there is 
an instance rule that no element shall be empty because it could be 
ambiguous between trading partners.

   http://docs.oasis-open.org/ubl/os-UBL-2.0/UBL-2.0.html#d0e3645
   "Use of empty elements within XML instance documents is a
    source of controversy for a variety of reasons."

I hope this helps.

. . . . . . . . . Ken


--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
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
Received on Thursday, 23 August 2012 19:33:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 23 August 2012 19:33:24 GMT