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

RE: simpleType hh:mm:ss:ff

  • From: Bob Kline <bkline@r...>
  • To: =?UNKNOWN?Q?Jos=E9?= Manuel Beas <jmbeas@t...>
  • Date: Tue, 23 Jan 2001 06:50:13 -0500 (EST)

hh mm ss
On Tue, 23 Jan 2001, [UNKNOWN] 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 would need two things.

1. Separation of the components of the date in different elements.
2. Conditional constraints, supporting different constraints on an
   element's value based on a value in some other element or 
   attribute, which W3C's Schema mechanism doesn't have.

But it does have support for dates.  You just have to live with the
syntax they've chosen.

-- 
Bob Kline
mailto:bkline@r...
http://www.rksystems.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.