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

Re: A prose description of traversing all the schemas? An algo

  • From: Michael Kay <mike@saxonica.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Sat, 16 May 2015 18:23:51 +0100

Re:  A prose description of traversing all the schemas? An algo

On 15 May 2015, at 20:02, Costello, Roger L. <costello@mitre.org> wrote:

Hi Folks,

Recall that an XML Schema can reference other schemas, using the include and import elements.


Start by getting the terminology right. Schema documents reference other schema documents. A “schema” is a collection of schema components, and contains no trace of which schema document defined each component.


And those schemas can then reference other schemas. And so forth.

I am writing a description of this. Specifically, I am writing two things:

1. A prose description of traversing all the schemas.

2. An algorithm for how to traverse all the schemas.

The prose description must be technically correct, but also understandable by a non-technical person.


I guess by “technically correct” you mean it should match what the spec says? But the spec leaves a lot of room for implementation variations (sadly).


If a schema is encountered a second time, it is not examined again.


If you change that to “schema document”, it leaves you with the problem of deciding whether you have encountered the “same” schema document that you encountered earlier. You need to explain how to decide whether two schema documents are the same schema document. The spec does not do this well.

It gets particularly troublesome with xs:redefine, of course.

Michael Kay
Saxonica


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