[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Schema for mixed content to provide backwards compatibility for an element with changing

From: Michele Vivoda <idmichele@yahoo.it>
Date: Tue, 4 Sep 2007 19:42:12 +0200 (CEST)
To: William S Fulton <wsf@fultondesigns.co.uk>, xmlschema-dev@w3.org
Message-ID: <885087.47535.qm@web27912.mail.ukl.yahoo.com>
Re: Schema for mixed content to provide backwards compatibility for an  element with changing

I don't think will be of any practical help,
but patent 7143346 ;-) deals with similiar issues.

http://www.patentstorm.us/patents/7143346-fulltext.html

Ciao
Michele Vivoda

--- William S Fulton <wsf@fultondesigns.co.uk> ha
scritto:

> 
> I'd like to upgrade our usage of XML dates to use
> the XML date type and 
> be able to validate both the old and new xml
> elements. An example of our 
> current xml date element looks like:
> 
> <date>
>    <day>1</day>
>    <month>2</month>
>    <year>2000</year>
> </date>
> 
> The desired change to use the xs:date type would
> look like:
> 
> <date>2000-02-01</date>
> 
> Is it possible to create a schema which will fully
> validate both 
> versions of the date element? I've been
> experimenting and googling for 
> some while now and cannot find a solution to getting
> a suitable schema. 
> I'd like to avoid changing the name of the element
> from "date". The 
> following mixed content will validate both, but it
> will validate any 
> text instead of the XML date type, which isn't very
> good:
> 
> <xs:complexType name="DateType" mixed="true">
>    <xs:sequence maxOccurs="1" minOccurs="0">
>      <xs:element name="day" type="integer" />
>      <xs:element name="month" type="integer" />
>      <xs:element name="year" type="integer" />
>    </xs:sequence>
> </xs:complexType>
> 
> William
> 
> 
> 



      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
Received on Wednesday, 5 September 2007 03:15:55 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.