You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Thomas Koch <Th...@SolvenTec.com> on 2005/09/27 13:00:07 UTC

generating PDF: in tomcat ok, bot not in OC4J

hello !
 
i have a problem to generate pdf's on the a OC4J.
 
in tomcat everything works fine.
- so we get the stylesheet from database and generating pdf's.
 
if i do the same on the OC4J i get following error:
 
Servlet error: Error on pdf generation : XSL-1000: (Fatal Error) Error
while parsing XSL file (Start of root element expected.).
 
org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.java:1
08)org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100)
 
 
i made a string out of the xslResourceStream in both cases and give it into
the exception-message (so i can see it in OC4J).
i get a valid stylesheet every time.
 
also if i read a minimal stylesheet like this following, i get the error.
 
<xsl:stylesheet version="1.1" xmlns:xsl
=" <http://www.w3.org/1999/XSL/Transform>
http://www.w3.org/1999/XSL/Transform" xmlns:fo
=" <http://www.w3.org/1999/XSL/Format> http://www.w3.org/1999/XSL/Format">
     <xsl:template match="/">
           test
     </xsl:template>
</xsl:stylesheet>
 
have anybody experiences or ideas ?
 
 
best regards