Splitting up the xml spec file

Richard Hughes hughsient at gmail.com
Tue May 9 08:13:59 PDT 2006


On Tue, 2006-05-09 at 14:10 +0100, Ross Burton wrote:
> On Tue, 2006-05-09 at 09:01 +0100, Richard Hughes wrote:
> > Now to include the xml documents, we need to use <xi:include../> which
> > makes the main file non-valid docbook, and hence cannot be used with
> > docbook2html (docbook2html is just a wrapper round openjade).
> > 
> > The best solution I've found if to use the following snippet:
> > 
> > xmllint --xinclude --postvalid --noent hal-spec-main.xml.in >
> > hal-spec.xml
> > docbook2html --nochunks hal-spec.xml -o .
> 
> I've been happily using xmlto to generate HTML from DocBook with
> XInclude for over a year now:
> 
> $ xmlto html-nochunks foo.xml

Yes, that works great, thanks for the info.

So, as above, but keeping hal-spec.xml.in being the "master" and then
XIncluding the other files into this.

Thanks,

Richard




More information about the hal mailing list