Jens Porup <> writes:
[...]
> compilation error: file temp.html.xml line 3 element book
> xsltParseStylesheetProcess : document is not a stylesheet
>
> Huh?
>
> Here's my make target:
>
> tech_spec_html: tech_spec.xml
> cd tech_spec; (J\(B
> xsltproc --output temp.html.xml (J\(B
> --stringparam profile.condition html (J\(B
> /usr/share/xml/docbook/stylesheet/nwalsh/profiling/profile.xsl (J\(B
> ../tech_spec.xml; #THIS WORKS
> xsltproc --debug (J\(B #BUT THIS DOESN'T
> --stringparam use.id.as.filename (J\(B
> /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl (J\(B
> temp.html.xml;
You have to specify a value for the use.id.as.filename parameter -
xsltproc --debug (J\(B
--stringparam use.id.as.filename 1 (J\(B
/usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl (J\(B
temp.html.xml;
With what you had, I think xsltproc thought that the value was
"/usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl" and it
though that the stylesheet was temp.html.xml. So I guess that's
why it was telling you it's not a stylesheet.