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

Re: MusicXML 2.0 XSD released

  • From: "Andrew Welch" <andrew.j.welch@g...>
  • To: "Michael Kay" <mike@s...>
  • Date: Mon, 15 Sep 2008 11:56:09 +0100

Re:  MusicXML 2.0 XSD released
2008/9/15 Michael Kay <mike@s...>:
>> One improvement you might like to do is to make all elements
>> and complex types global ("garden of eden" style) - this
>> exposes the types to schema-aware xslt and xquery, and
>> arguably helps the maintenance of the schema.
>
> By and large, the schema tends to follow the rule that if an element
> declaration is local, its type is global, and that's probably sufficient for
> schema-aware XSLT and XQuery processing: it means you can either use
> schema-element(E) or element(E, T) in a function signature.

To go with that, the reasons for global element declarations are:

- the association between the element and its type is in one place
- you get a nice list of elements at the top of the schema, which I like :)
- there's a subtle gotcha (that Mike Kay pointed out last time this
was mentioned) that using element refs pointing to a single element
type definition prevents, but of I course I can't remember it well
enough to describe or to find it now... something along the lines of
accidentally defining the type locally rather than referring to the
global type...?



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


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