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

Re: Is Schematron (using XPath 2.0) functionally a superset of

  • From: noah_mendelsohn@u...
  • To: Rick Jelliffe <rjelliffe@a...>
  • Date: Tue, 13 Nov 2007 10:07:10 -0500

Re:  Is Schematron (using XPath 2.0) functionally	a	superset of
Rick Jelliffe asks:

> How do you express anything at the component level? 

There are various libraries out there that you can use to compose a set of 
XSD schema documents and get an API that exposes the component structure. 
For example, there's [1].  Our XML Screamer project used exactly that 
approach:  we took an off the shelf Java library to do all the hard work 
of resolving <xsd:include>, <xsd:redefine>, etc., and we just compiled our 
validators from the resulting component structures.  I'm fairly sure that 
Michael Kay has also said that the latest versions of Saxon will read in a 
set of schema documents and write out an XML file that directly reflects 
the resolved components, so you could write tools that extracted schema 
information from that.

Trying to figure out the effective schema for a set of composed schema 
documents is like handing a tool a C source file and a pile of headers 
that use #define and #ifdef and then asking the tool to determine the 
names and types of fields in an arbitrary struct.  You can tempt yourself 
into trying it in the simple cases, but you'll ultimately find you're 
working at the wrong level.  Run it all through CPP and the job gets easy. 
 Same for schema:  there are a set of constructs available at the source 
syntax level, and they allow you to do things like inherit facets from 
types defined in other files.   The purpose of the component model is 
precisely to make sure that there is a level of the design in which most 
of the indirections are resolved, and which sets out things like the net 
effective content model for an element.

Noah

[1] http://www.eclipse.org/modeling/mdt/?project=xsd#xsd

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------






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