[relaxng-user] association of RELAX NG with a document

Robin Berjon robin.berjon at expway.fr
Thu Oct 23 14:49:39 ICT 2003


John Cowan wrote:
> Tsuguya Sasaki scripsit:
>>I'm a relatively new "convert" (from XML Schema) to RELAX NG. I
>>understand that there is no standard way to associate a RELAX NG schema
>>with a document. I'm just wondering if there is any plan to make this
>>possible.
> 
> Not really.  The theory is that you might want to validate a document
> against different schemas for different purposes, and no one schema is
> really preferred.

That's very true, but at the same time, while I'm not at all a big fan of 
xsi:schemaLocation, DOCTYPE, or other related things such as xml-stylesheet, 
there are cases in which one just needs a simple and lightweight way of 
associating a schema with an instance. And RDDL might be a bit too indirect.

So why not a simple way for simple cases, and let complex cases be dealt in 
other ways? Note that a mechanism comparable to xml-stylesheet could cover the 
case you describe.

-- 
Robin Berjon <robin.berjon at expway.fr>
Research Scientist, Expway      http://expway.com/
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488



More information about the relaxng-user mailing list