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

Received on Monday, 27 August 2012 21:36:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:20 UTC