[XML-SIG] docbook 5, lxml and rng

Stefan Behnel stefan_ml at behnel.de
Sat Jun 6 17:29:39 CEST 2009


Tim Arnold wrote:
> my libxml2 version is 5, which I think means that schematron isn't
> supported. And the docbook.rng contains some embedded schematron. From
> the DocBook 5 documentation:
>
> ---------------------
> If you want to validate against the DocBook 5 RelaxNG schema, then you
> have to find the right validation tool. The DocBook 5 RelaxNG schema
> includes embedded Schematron rules to express certain constraints on
> some content models. For example, a Schematron rule is added to prevent
> a sidebar element from containing another sidebar. For complete
> validation, a validator needs to check both the RelaxNG content models
> and the Schematron rules.
> ---------------------

Yes, it looks like libxml2 can't handle Schematron annotations that are
embedded in RelaxNG schemas, even if both languages are supported separately.

Stefan


More information about the XML-SIG mailing list