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

RE: W3C Schema Question

  • To: "CHIUSANO, Joseph" <JCHIUSANO@l...>,<xml-dev@l...>
  • Subject: RE: W3C Schema Question
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Wed, 25 Sep 2002 13:51:38 -0700
  • Thread-index: AcJkyCDdomuBXtTISBCCbgG9Uy81iAADRCHA
  • Thread-topic: W3C Schema Question

sch ma attrition
How about using a union type? 

http://www.w3.org/TR/xmlschema-0/#UnionDt

-- 
PITHY WORDS OF WISDOM 
Don't think of it as being outnumbered and surrounded, think of it as a
really low risk of ammunition wastage.         

This posting is provided "AS IS" with no warranties, and confers no
rights. 

>  
>  
> -----Original Message-----
> From: CHIUSANO, Joseph [mailto:JCHIUSANO@l...] 
> Sent: Wednesday, September 25, 2002 12:17 PM
> To: xml-dev@l...
> 
> Dear All,
> 
> I have a situation in which I need to anticipate the 
> possibility of 2 different datatypes in a single XML element 
> (I'm thinking xsi:type right now, but I'll continue).  I have 
> an element that can either be a date, or an asterisk.  The 
> date or asterisk will always appear in the same element - 
> i.e. there are not separate elements for these.  So we can have:
> 
> <MyElement>2002-02-02</MyElement>
> 
> in one XML document, and then:
> 
> <MyElement>*</MyElement>
> 
> in another.
> 
> Is there an efficient way to handle this within a single 
> schema, ensuring that invalid dates are detected?
> 
> Kind Regards,
> Joe Chiusano
> LMI
> 
> > 
> **************************************************************
> ************
> >   Joseph M. Chiusano
> >   Logistics Management Institute
> >   2000 Corporate Ridge
> >   McLean, VA 22102
> >   Email: jchiusano@l...
> >   Tel: 571.633.7722
> > 
> **********************************************************************
> > ****
> > 
> > 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
> <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 
> 

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.