This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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@


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]