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

RE: Creating a "General MusicXML" format using W3C XML Schemas

  • From: "Michael Kay" <mike@s...>
  • To: "'Michael Good'" <musicxml@g...>,<xml-dev@l...>
  • Date: Wed, 17 Oct 2007 10:36:56 +0100

RE:  Creating a "General MusicXML" format using W3C XML Schemas
> We would most likely use the W3C XML Schema format to define 
> these profiles. This is due to its extensive software 
> support, including pervasive parser support, comprehensive 
> tool support, and integration into other XML technologies 
> like JAXB and XQuery.

In general I think this is a good idea. However, the devil is in the detail.
Some XML vocabularies lend themselves well to being described using XML
Schema, others don't. The kind of things that tend to make it difficult are
use of microsyntax within element and attribute values, rules where the
structure depends on the content, and some forms of extensibility provision.

In theory you should be able to define a schema for each of your profiles.
XHTML attempts to do something similar. In practice it can be quite
difficult to manage schema variants like this without making them "cut and
paste" copies of each other. One technique I have used successfully is to
have a common baseline schema with private markup to indicate "this part of
the schema is present in variants A, B, and F", coupled with XSLT
transformations to generate the profile schema documents from this common
source.

Along with having a schema, another thing that can improve the accessibility
of instance documents is an XSLT or XQuery function library: in effect this
can encapsulate the data behind an object-oriented API, hiding details that
applications don't need to see.

Michael Kay
http://www.saxonica.com/



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