OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: DocBook XSD


Hello world,

For years, my plan has been to generate XSD files from the DocBook
RELAX NG sources. The best plaid plans of mice and men, as they say,
are about equal. After some promising forays, and enormous amounts of
fruitless effort, I've given up.

My new plan is to craft the XSD by hand, maintaining it in parallel to
the normative RELAX NG schema in wetware. For derived schemas, like
Publishers, this will mean crafting two customization layers, one for
RELAX NG and one for XSD. And I'm not quite sure what the XSD
customization will look like. Probably something that uses xs:override
(from XML Schema 1.1) and compiles down to XSD 1.0 via XSLT.

Here are the first, crude attempts. I'm *sure* there are bugs in the
XSD (I know there are issues with the placement of indexterms), but
I'd welcome feedback anyway.

docbook.xsd is a 1.1 schema
docbook10.xsd is a 1.0 schema
docbook-xsd.sch is a set of Schematron assertions

In theory, if you validate with XSD then apply *both* the normal Schematron
assertions provided with DocBook V5.0 *and* these additional assertions,
you'd get within spitting distance of having the same level of validation
as the RELAX NG. In practice, meh, use the %@#$!ing RELAX NG!

Attachment: docbook.xsd
Description: Binary data

Attachment: docbook10.xsd
Description: Binary data

Attachment: docbook-xsd.sch
Description: Binary data

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | The effects of weakness are
http://www.oasis-open.org/docbook/ | inconceivable, and more prodigious
Chair, DocBook Technical Committee | than those of the most violent
                                   | passions.--Cardinal De Retz

Attachment: pgpkQpitrKymt.pgp
Description: PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]