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

Re: Why datatypes?


interleaving with schematron
Hi,

> but I think there recently have been efforts that schematron actually
> complements what is done by RELAX NG and XML-Schema -- that is very good.
>
> I have not followed schematron closely but I think what is really
> interesting contribution from schematron is the paradigm by which it does
> things -- the applications where it is useful, I am not sure.
>
> Again, if someone could provide some application scenarios and how
> schematron helps with some technical detail, I would be very glad.

I've been doing some work in this area for the simple reason that Schematron
complement both W3C XML Schema ("W3C") and RELAX-NG ("RNG") very well. Like
Len, I'm a huge fan of Schematron but I sometimes find that defining
structure in Schematron can be a bit complex and cumbersome. Since it's very
easy to define structure in both W3C and RNG it was natural to try to combine
them with Schematron to express the validation tasks that can not be
performed in W3C and RNG alone. For W3C you can use Schematron to overcome
the shortcomings for interleaving of elements or express co-occurrence
constraints. RNG does have some built-in support for co-occurrence
constraints but embedded Schematron rules can, for example, be used to
implement identity constraints that are not implemented in the current
version of RNG.
For both W3C and RNG there exist an XSLT stylesheet [1], [2] that will
extract the Schematron rules from the respective schema and merge these rules
into a complete Schematron schema that can be used for validation. I'm
currently writing up a paper on how to do this in both RNG and W3C which will
be finished shortly. In the meantime you can have a look at [3] for examples
and technical details. This paper only deals with embedded Schematron in W3C
but it works the same way for RNG.

Cheers,
/Eddie

[1] http://www.topologi.com/public/Schtrn_XSD/RNG2Schtrn.zip
[2] http://www.topologi.com/public/Schtrn_XSD/XSD2Schtrn.zip
[3] http://www.topologi.com/public/Schtrn_XSD/Paper.html


>
>
> thanks and regards - murali.
>
> On Wed, 5 Jun 2002, Bullard, Claude L (Len) wrote:
>
> > Someone usually does.  The SGMLers understand it and practiced it
> > virtually like a religion (the SGML Way).  It gets messy however to
> > ignore processing contexts if systems are to interoperate without
> > human interventions.  A reason for understanding what features XML
> > Schema, RELAX NG and/or Schematron enable is to pick the right tool to
> > get the right strength of agreement.  (Am I the only one who considers
> > Schematron almost heroic?  It is the one piece the others need
> > consistently and why I am holding out for DSDL.)
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>


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.