OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] W3C Schema Question

[ Lists Home | Date Index | Thread Index ]
  • To: "CHIUSANO, Joseph" <JCHIUSANO@lmi.org>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] W3C Schema Question
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Wed, 25 Sep 2002 13:51:38 -0700
  • Thread-index: AcJkyCDdomuBXtTISBCCbgG9Uy81iAADRCHA
  • Thread-topic: [xml-dev] W3C Schema Question

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@lmi.org] 
> Sent: Wednesday, September 25, 2002 12:17 PM
> To: xml-dev@lists.xml.org
> 
> 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@lmi.org
> >   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>
> 
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS