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

Re: RE: When you create a markup language, what do yourparent

  • From: Michael Kay <mike@saxonica.com>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 29 Sep 2011 09:31:30 +0100

Re:  RE: When you create a markup language
I think most examples of parent-child relationships fall into one of 
three categories:

(a) representing the properties of an object

<book>
<price>3.25</price>
</book>

(b) representing a one-to-many relationship (often a "containment" or 
"aggregation" relationship, though in my experience data modellers do 
not use those terms consistently)

<county name="Berkshire">
<town name="Windsor"/>
<town name="Reading"/>
</county>

(c) representing a many-to-many relationship with the help of link elements:

<xs:attribute-group name="G">
<xs:attribute ref="A"/>
<xs:attribute ref="B"/>
</xs:attribute-group>

(represents a many-to-many relationship between attribute groups and 
attributes).

In each case there are other choices available to the schema designer, 
and different designers will quite legitimately make different choices; 
there are no "normalization rules" governing XML schema design as there 
are in relational databases. A good schema design will however exhibit 
some internal consistency.

Document modelling is of course rather different from data modelling. 
With document-oriented models, the parent-child relationship usually 
reflects a textual containment hierarchy that corresponds to the 
abstracted structure of a rendition of the document.

Michael Kay
Saxonica


On 26/09/2011 23:49, Costello, Roger L. wrote:
> Hi Folks,
>
> These two markup languages have a consistent definition of what parent elements and child elements mean:
>
> 1. RDF
> 2. GML
>
> Both languages specify that parent elements represent a resource or object and child elements represent properties or attributes.
>
> Are those the only markup languages that have a consistent definition of what parent elements and child elements mean?
>
> If one is creating a markup language and wants to adopt a consistent definition for parent elements and child elements, is resource/object and property/attribute the only way to accomplish it?
>
> Is an Object-Oriented approach to markup the only viable approach when one wants to have a consistent definition for parent elements and child elements? That would be quite astonishing, given that people such as Tim Bray argue that "XML is 180 degrees apart from OO".
>
> /Roger
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>



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


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.