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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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

Subject: validating individual files in a document


I'm working on setting up on-file-fly validation of FreeBSD documentation in
Emacs with nxml-mode.  I've configured Emacs/nmxl-mode to use FreeBSD's nearly
DocBook 5.0 compact relax NG schema.  Everything is working well, but there is
one issue that I am stumped on.  If I am working on a file (e.g. a chapter) that
is included in a main document (book) and that file uses project-specific
entities, the document will not validate.  I can put a DTD at the top of the
file with the entities, and it will validate, but that's clearly the wrong thing
to do since the book file already has a DTD.





Tree for FreeBSD's documentation: https://svnweb.freebsd.org/doc/

Book file:    https://svnweb.freebsd.org/doc/head/en_US.ISO8859-1/books/fdp-primer/
Chapter file: editor-config/chapter.xml, which is included in book.xml

The book is glued together with the Makefile there.  There are a few layers of
includes, which eventually pulls in the .ent files:

The compact relax NG schema:

Attachment: signature.asc
Description: PGP signature

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