validating individual files in a document
Joseph Mingrone
jrm at ftfl.ca
Mon Jul 18 00:32:08 UTC 2016
Hi,
I'm working on getting up on-file-fly validation working when editing FDP
'V5.0-Based DocBook Extension' content. Everything is working well using the
compact relax NG schema in the tree, doc/head/share/xml/freebsd50.rnc, except
for one issue that I am stumped on. If I am working on a file (e.g.,
doc/head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml) that is
included in a main document (for this example,
docs.svn/head/en_US.ISO8859-1/books/fdp-primer/book.xml) and that file uses
shared entites defined elsewhere (like &prompt.user defined in
doc/share/xml/freebsd.ent), the document will not validate, because the
validator is not aware of those shared entities. I can add an internal DTD
subset to chapter.xml that references those entities and chapter.xml will
validate, but I do not believe this is correct since the book isn't using
XInclude. Doing so means running make in the root directory of the book will
fail.
Suggestions?
Thanks,
Joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20160717/4b48313e/attachment.sig>
More information about the freebsd-doc
mailing list