[XML-SIG] docbook 5, lxml and rng
Bill Kinnersley
billk at sunflower.com
Sat Jun 6 23:08:27 CEST 2009
Stefan Behnel wrote:
> 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.
Doesn't that just mean it skips over them? I don't see how the
error_log entries Tim was getting would implicate Schematron.
Anyway, the RelaxNG specification for Docbook, I believe, is still quite
experimental. Both jing and trang choke on it, so perhaps libxml2 may
be forgiven for choking also.
More information about the XML-SIG
mailing list