OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] W3C schema, RelaxNG, and Schematron

[ Lists Home | Date Index | Thread Index ]

On lun, 2005-04-18 at 10:16 -0700, Dan Vint wrote:

.../...

> 4) The extension methods should be supported at least by the core tools on 
> Java and MS platforms. So we test with Xerces-J and MS-XML parsers.

Since MSXML does not support RELAX NG, that means that if you were using
RNG, you'd be using it to generate W3C XML Schema, doesn't it? 

> We have not found a way to do all of the above, we can answer different 
> parts but  not all the requirements. We essentially have two approaches 
> currently and would like to find the ultimate solution that answered all of 
> the above. I'm wondering  if RelaxNG or Schematron might help some of this 
> without creating too much of a burden maintaining these other environments.

If you need to limit yourselves to using RNG as an authoring language to
generate WXS schemas, that won't buy you the support of non
deterministic models that you're mentioning below.

.../...

> Any ideas?

You could explore the fact that XML schemas are XML documents and can be
generated. Bob DuCharme has published a nice description of some of the
things you can do in this domain:
http://www.snee.com/xml/schemaStages.html

Also, you could consider doing double validations (ie a validation
against the core schema and a validation against the derived schema).
That would give you more flexibility than using the derivation methods
allowed by W3C XML Schema; you could leave the schema designer do miore
or less what he/she wants assuming you'd always be validating to the
core schema in addition to validating against the derived one.

Finally, you can apply schemas to W3C XML schemas. These schemas can use
any schema languages (you could restrict the W3C XML Schema schema for
WXS, but also the RELAX NG one for WXS or write Schematron constraints
to check your good practices).

These are just raw ideas, I hope they can help!

Eric  

-- 
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS