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

RE: syntax, model

  • To: "Tyler Close" <tyler@w...>,"Rich Salz" <rsalz@d...>
  • Subject: RE: syntax, model
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Fri, 24 Oct 2003 11:12:59 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcOaU5mMKVTTiiyZSwKTEPShWJmvIAABkiKw
  • Thread-topic: syntax, model

xs any xs anytype difference

> -----Original Message-----
> From: Tyler Close [mailto:tyler@w...] 
> Sent: Friday, October 24, 2003 9:57 AM
> To: Rich Salz
> Cc: xml-dev@l...
> Subject: Re:  syntax, model
> 
> 
> What's the difference between saying: "the data will fit this 
> form" versus "the possible values are of this form"?

Not much. However in the XML world people have come to make the
distinction between describing the structure of a document (location of
elements and attributes) and specifying the actual values in the
document (textual content of elements and attributes). 
 
> > When you see "xs:any" at the end of an "xs:complexType" 
> declaration, 
> > do you think "base class" or do you think ".*" (the regexp 
> pattern).  
> > It took me some time to get away from the first notion, and 
> it's still 
> > hard to come up with good words to explain it.
> >
> > What is the data model of this?
> >
> >     <xs:element name="Address">
> >        <xs:complexType>
> >            <xs:element name="Street"/>
> >            <xs:element name="Country"/>
> >            <xs:element name="PostalCode"/>
> >        </xs:complexType>
> >     </xs:element>
> 
> We're not connecting on something here, because for me, that 
> XML snippet does describe a data model. It says an Address is 
> composed of a Street, Country and Postal Code. What else is 
> there for a data model to say about an Address?

Since the types of the Street, Country and PostalCode elements is
xs:anyType meaning they can have any content I'm assuming Rich means
that 
there isn't enough information there to do much processing with.  

-- 
PITHY WORDS OF WISDOM 
To err is human, to forgive is against department policy.


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

 

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.