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

Re: What is the data type of a fixed element that has no type attribute?

From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
Date: Mon, 26 Mar 2012 12:15:59 -0600
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-Id: <B3A05FC0-B4D9-46AD-93DF-837308278A47@blackmesatech.com>
To: "Costello, Roger L." <costello@mitre.org>

On Mar 26, 2012, at 11:45 AM, Costello, Roger L. wrote:

> Hi Folks,
> 
> What is the data type of this fixed element:
> 
>      <element name="Aircraft" fixed="boeing:AC-747" />

I think the spec says that the type of 'Aircraft' is xsd:anyType.

> Can an XML instance document specify that its type is a QName, like so:
> 
>      <Aircraft xsi:type="xs:QName">boeing:AC-747</Aircraft>
> 
> That results in an error, why?


In the document you give, no binding for the prefix 'boeing' is
visible.  If a processor were to validate the Aircraft element
against xsd:QName in that document, I'd expect it to find the
element invalid.

But you seem to be saying the processors you've tried have
given you an error message, instead, not a report that the
input is invalid.  (Or are you treating invalidity as an error?)

Hard to say what the processor is thinking, if you don't provide
more complete input and don't report what the processor actually
says.

-- 
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com 
* http://cmsmcq.com/mib                 
* http://balisage.net
****************************************************************
Received on Monday, 26 March 2012 18:16:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 26 March 2012 18:16:29 GMT