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] Element validation based on attribute value? XMLSchema +

[ Lists Home | Date Index | Thread Index ]

From: "Andrzej Jan Taramina" <andrzej@chaeron.com>
 
> Seems that embedding Schematron assertions in an <appinfo> tag would 
> probably do the trick (and keeps the validation "logic" embedded in the 
> XMLSchema document), but is that the best way to handle such validation?  
> 
> Are there validation solutions "better" than Schematron for such a 
> requirement? 

XLinkIt is better than Schematron, as far as power and completeness,
especially if you need to check constraints between multiple documents
using a server.  http://www.xlinkit.com/  But it does not embed in
XML Schemas AFAIK and has a much steeper learning curve.

Examplotron is better than Schematron if your document structures
are fairly simple and your constraints are fairly simple. http://www.examplotron.org/
But it does not embed in XML Schemas AFAIK and only has a
single implementation so far. 
 
I suspect you can use RELAX NG for that too. But I don't expect
many people will be embedding RELAX schemas inside XML Schemas :-)

> Would definitely appreciate some ideas/opinions/ruminations/best practices on 
> the "best" way to handle such validations. 

If you decide to adopt Schematron (+ DTDs, or +XML Schemas, or + RELAX) 
from the start, you will have more leeway to structure your documents naturally.  
Each schema language can do less.  And you can rapidly add constraints to
handle/expose particular issues. 

Cheers
Rick Jelliffe
Topologi, Pty. Ltd.  





 

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

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