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

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: Issue: overlapping with XML Schema Part 2


I believe the concept of restriction in XML Schema Part 2 is broken.  The
only way of treating XML Schema Part 2 facets that I have been able to find
that isn't broken is to treat them as parameters.  If facets are just
parameters, what would derivation mean?

----- Original Message -----
From: "Kohsuke KAWAGUCHI" <kohsuke.kawaguchi@eng.sun.com>
To: <trex@lists.oasis-open.org>
Sent: Tuesday, May 08, 2001 7:19 AM
Subject: Re: Issue: overlapping with XML Schema Part 2



Your proposal doesn't allow me to name a type and derive a new type from
it. I think this might be a considerable drawback.

<simpleType name="localTime">
  <restriction base="time"><!-- prohibit time zone -->
    <pattern value="[0-9]+:[0-9]+:[0-9]+" />
  </restriction>
</simpleType>

....

<element name="officeHours">
  <data type="localTime">
    <param name="minInclusive" value="08:00:00" />
    <param name="minInclusive" value="20:00:00" />
  </data>
</element>

...





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC