Lists Home |
Date Index |
From: "Andrzej Jan Taramina" <email@example.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
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.
Topologi, Pty. Ltd.