This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] using XIncludes
On Tue, Feb 22, 2005 at 07:56:45PM -0800, John L. Clark wrote:
> On Wed, Feb 23, 2005 at 02:25:54PM +1100, Jens Porup wrote:
> > When I try to validate the doc with:
> >
> > xmllint --noout --noent --xinclude --postvalid tech_spec.xml
> >
> > It validates--there are no errors.
> >
> > But when I xsltproc for both html and doc, I get the errors:
> >
> > (HTML) No template matches xi:include in book.
> >
> > (PDF) xi:include encountered in book, but no template matches.
>
> Are you using the `--xinclude` argument to `xsltproc`, as well? It
> would look like:
>
> $ xsltproc --xinclude path_or_URI_to_stylesheet.xsl tech_spec.xml
>
John,
Well, this is what my make target looks like:
xsltproc --output temp.html.xml \
--stringparam profile.condition html \
/usr/share/xml/docbook/stylesheet/nwalsh/profiling/profile.xsl \
../tech_spec.xml; \
xsltproc \
--stringparam use.id.as.filename 1 \
--stringparam spacing.paras 1 \
--stringparam make.valid.html 1 \
--stringparam chunker.output.indent yes \
/usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl \
temp.html.xml;
The xsl stylesheets are already mentioned--what does mentioning them
twice serve?
Jens