This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Trouble with transforming XML to PDF
- From: Matthew Braun <mbraun at urbana dot css dot mot dot com>
- To: Ariel Anderson <Ariel dot Anderson at ceb dot ucop dot edu>
- Cc: "'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 14 Dec 2001 10:44:12 -0600 (CST)
- Subject: Re: DOCBOOK-APPS: Trouble with transforming XML to PDF
Ariel Anderson <Ariel.Anderson@ceb.ucop.edu> writes:
>Hmm, now that I've downgraded, I'm getting a different set of errors.
>
>1) When I run the following command to convert the XML file to HTML (which
>worked fine with version 1.47):
>
> java org.apache.xalan.xslt.Process -in book.xml -xsl
>docbook-xsl-1.46-experimental/html/docbook.xsl -out book.html
>I get this error:
>
> (Location of error unknown)XSLT Error
>(javax.xml.transform.TransformerConfigurationException):
>javax.xml.transform.TransformerException: java.lang.RuntimeException:
>ElemTemplateElement error: Found more than one template named: anchor
Ummmm...no idea. I'm using xsltproc, and it doesn't have any problem
with the 1.46 version of the style sheets.
>2) I also get this same error if I run the command for creating the FO.
What version of Xalan are you using?
>3) When I run the following command to generate PDF from the XML file:
> java org.apache.fop.apps.Fop -xml book.xml -xsl
>docbook-xsl-1.46-experimental/html/docbook.xsl -pdf book.pdf
This should be:
java org.apache.fop.apps.Fop -xml book.xml \
-xsl docbook-xsl-1.46-experimental/fo/docbook.xsl -pdf book.pdf
In this case, you want the formatting-object style sheets, not the
html ones. :-)
m@