W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2010

Re: Help on XML Schema generation using XSLT

From: Cheney, Edward A SSG RES USAR <austin.cheney@us.army.mil>
Date: Thu, 09 Sep 2010 18:20:08 -0500
To: Silent lights <silentlights@yahoo.co.uk>
Cc: xmlschema-dev@w3.org
Message-ID: <f5f0d66a1dd04.4c892558@us.army.mil>

XML Schema recognizes several built-in simple types for defining the format of data.  Here are some of those that may interest you:

* date
* time
* dateTime

* decimal
* integer
* nonNegativeInteger
* positiveInteger

You can do your own research to discover more about the definitions of these built-in simple types, but I recommend buying the book from Priscilla Walmsley.  She has a diagram of those types on page 222 and then fully defines each type in accordance with the specification for the remainder of that chapter.  I strongly recommend you pickup that book, unless somebody else can recommend a different better book.  It is the only reference I have ever used and taught myself to write new languages solely from reading that book, of which my big one resulted in a patent application for a feature unrelated to Schema.  That book is, as a result, the most valuable investment I have made in my career.

Here is an example of simple types where decimals and dates are distinguished:

<xs:element name="parentElement">
            <xs:element ref="firstChild_decimal"/>
            </xs:element ref="secondChild_date"/>
<xs:element name="firstChild_decimal">
        <xs:restriction base="xs:decimal"/>
<xs:element name="secondChild_date">
        <xs:restriction base="xs:date"/>

Received on Thursday, 9 September 2010 23:20:43 UTC

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