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

What is the type of an element with a fixed value?

From: Costello, Roger L. <costello@mitre.org>
Date: Mon, 27 Aug 2012 21:35:51 +0000
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <B5FEE00B53CF054AA8439027E8FE17751E630DFC@IMCMBX04.MITRE.ORG>
Hi Folks,

What is the type of Foo?

    <element name="Foo" fixed="Hello World" />

Is it:

(a) xs:string

(b) xs:anyType


What is the type of Bar?

    <element name="Bar" fixed="93" />

Is it:

(a) xs:string

(b) xs:decimal

(c) xs:anyType


/Roger
Received on Monday, 27 August 2012 21:36:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 August 2012 21:36:17 GMT