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

Re: simpleType hh:mm:ss:ff

  • From: Eric van der Vlist <vdv@d...>
  • To: José Manuel Beas <jmbeas@t...>
  • Date: Tue, 23 Jan 2001 10:38:23 +0100

hh mm ss
José Manuel Beas wrote:
> 
> Thanks Bob,
> 
> It's a hard work, I agree. But... is it possible to define:
> ----------
> <xsd:simpleType name="day">
>   <xsd:restriction base="xsd:number">
>     <xsd:minInclusive value="1"/>
>     <xsd:maxInclusive value="31"/>
>   </xsd:restriction>
> </xsd:simpleType>
> ----------
> 
> and define some kind of xsd:complexType as a "fussion" of day, month and
> year, but restricting the maximum bound of those components to something
> depending on the others (i.e., the max value of a day depends on the month
> value).????

You can't do this using W3C XML Schema.

The closest thing you could do is to derive by list, but it would be
assuming that:

1) the delimiter between components would be a white spaces.
2) the datatypes for all the "components" would be the same.

And the values wouldn't depend on each other.

This doesn't seem to match the requirement here...

IMHO, this is a perfect example where adding a rule (Schematron ?)
through an extension mechanism (SAF ?) would be perfect.

Eric

> Best Regards,
> --
> José Manuel Beas (jmbeas@t...)
> Software Engineer
> TELENIUM, The New Millennium Telecom Company
> Agustín de Foxá, 25, plta. 13
> 28036 MADRID
> Tel. +34 91 315 85 62 (ext. 260)
> Fax +34 91 315 63 37
> http://www.telenium.es

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.