On Tue, Nov 24, 2009 at 23:52, Daniel Convissor <dani...@analysisandsolutions.com> wrote: > On Tue, Nov 24, 2009 at 04:20:52PM -0500, Rob Richards wrote: > >> I just cant find any decent way to do this. Using that flag just causes >> xmllint to build then doc and then do a validation against the DTD. > > Hmm... Is it possible to determine the various DTD files required, cat > them together into a temporary file, then pass that temp file to the > --dtdvalid parameter?
The validation part isn't the problem, the problem is we need to inject the various &reftitle.parameters;, &reftitle.this.and.that; entities we have into documents like book.xml, without actually referencing the DTD in book.xml. We could do some voodoo to inject a DTD declaration into book/reference/functionname.xml files (and writing it back into tmp.xml during processing or whatever)... I suppose that would be the only way since the dtdvalid only does validation but doesnt actually inject the DTD as I had hoped for :( -Hannes