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

RE: Re: XML Schema ?

  • From: "Gregory M. Messner" <gmessner@b...>
  • To: xml-dev@l...
  • Date: Wed, 12 Sep 2001 16:23:17 -0700

restrict words exclude xml schema
I suppose there's nothing in the text of the spec that contradicts this, but
while looking at the definition of restriction for simpleType, each particle
may be optional but the content model must be present. In the spec
restriction content model is defined as follows:

(annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive |
maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength
| enumeration | whiteSpace | pattern)*))

Again notice that each particle is optional but the content model itself is
not. Without even considering XML Schema, would the following be valid XML?

DTD fragment:
<!ELEMENT A (B?, C?, D?)>

XML document fragment:
<A></A>

If the answer is yes, then I will accept using an empty restriction as a
pseudo type alias, otherwise I would not. I've looked thru the XML spec and
was not able to find a definitive answer on this. At this point my guess
would be yes it is valid, but I'm not 100% sure and would like to be.

Greg


-----Original Message-----
From: Fuchs, Matthew [mailto:matthew.fuchs@c...]
Sent: Wednesday, September 12, 2001 2:07 PM
To: 'Kohsuke KAWAGUCHI'; xml-dev@l...
Subject: RE:  Re: XML Schema ?


Exactly.

Matthew

> -----Original Message-----
> From: Kohsuke KAWAGUCHI [mailto:kohsukekawaguchi@y...]
> Sent: Wednesday, September 12, 2001 12:08 PM
> To: xml-dev@l...
> Subject:  Re: XML Schema ?
> 
> 
> 
> > Notice that the restriction has no content. If this is 
> valid, then is the
> > intent to just extend the "base64Binary" builtin type? Or 
> assign a different
> > name to the "base64Binary" builtin type? I thought <restriction> was
> > intended to restrict a new datatype to a *subset* of an 
> existing type?
> 
> I suppose CryptoBinary can still be considered as a 
> restriction of base64Binary.
> In other words, it's not an alias, although it behaves like 
> that to some
> extent.
> 
> I don't see anything in the spec that contradicts my interpretation.
> 
> 
> In mathematics, if A=B, then one can usually say that A is a 
> subset of B.
> To exclude that possibility, one has to say that A is a 
> proper subset of
> B.
> 
> 
> 
> 
> regards,
> ----------------------
> K.Kawaguchi
> E-Mail: kohsukekawaguchi@y...
> 
> 
> -----------------------------------------------------------------
> 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 elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 

-----------------------------------------------------------------
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 elist 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.