[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: W3C Schema Question
  • From: "CHIUSANO, Joseph" <JCHIUSANO@l...>
  • Date: Wed, 25 Sep 2002 15:17:02 -0400
  • Thread-index: AcJkyCDdomuBXtTISBCCbgG9Uy81iA==
  • Thread-topic: W3C Schema Question

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
> **************************************************************************
> 
> 

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member