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

Re: When validation is appropriate

schematron limitations
Hi Rick,

> The question that springs to my mind is "what kinds of constraints
> are these quality control tools implementing?" -- are they the kinds
> of things that Schematron is good at, or the kind of things that WXS
> is good at (or both or neither)?

In my experience (admittedly limited to a single publisher), the
majority are co-occurrence constraints that could be handled by
Schematron but not by W3C XML Schema.

Some of them could be handled by W3C XML Schema, but would be quite
tricky to do (e.g. something that says that all the text within a
particular element, at any level, must be in lowercase).

Some are enforcing naming conventions, which could be done with either
language to a certain extent, though Schematron is probably more
helpful (e.g. when the name includes a counter that needs to increment
by one for each instance)

I've just had to add a new one to check on the location of processing
instructions; again, that's something that Schematron could handle,
but W3C XML Schema can't.

There are things that Schematron can't do (because of XPath
limitations rather than Schematron limitations), in particular
checking whether referenced documents actually exist. I'm told that
there are others, but I'm not sure what they are.

(I'll see whether I can persuade the publisher to release the list to



Jeni Tennison


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.
First Name
Last Name
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.