Hi, thanks for the advice I split up the transformation but couldn't find anything wrong.
The xslt file misses in the output the template & style tags but I suppose that's ok. I got rid of the complicated XmlTransformer and pasted the xml creation directly into the servlet but still no luck. So I have reduced everything to it's most basic components but I still don't see what's wrong. Just to be sure I attached the servlet and the xls sheet (created & tested in Stylevision). Do you see anyhing wrong? cheers, Pete > --- Ursprüngliche Nachricht --- > Von: Jeremias Maerki <[EMAIL PROTECTED]> > An: fop-users@xmlgraphics.apache.org > Betreff: Re: How to pass input of xml tranfs. to xslt transf. ? > Datum: Thu, 08 Dec 2005 16:25:01 +0100 > > Nothing's wrong with the sequence. Now that you've got a complete > processing pipeline there and you have problems, you have to split it up > at defined points to get at the intermediate results so you can identify > the problem. For example: > > Instead of... > SAXResult result = new SAXResult(driver.getContentHandler()); > ...you can use... > StreamResult result = new StreamResult(new File("C:/Temp/temp.xml")); > > That will write the output from the XSLT transformation to a file which > you can inspect. If you want to see what the XML you produce looks like, > switch from XSLT transformation to identity transformation > (newTransformerHandler()) > to skip the XSLT stage. > > You've probably got a bug in your XSLT. Now it's your turn. > > On 08.12.2005 16:18:51 Peter.Neu wrote: > > OK, the ByteArrayOutputStream solves the NullPointer Exception. The only > > problem left is there is none of my xml data in the pdf. I only get the > > static header of the xsl document :o/ > > > > Do we have to change the sequence somehow? > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- GMX DSL-Flatrate 1 Jahr kostenlos* + WLAN-Router ab 0,- Euro* Bis 31.12.2005 einsteigen! Infos unter: http://www.gmx.net/de/go/dsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2004/07/xpath-functions" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes"> <xsl:variable name="fo:layout-master-set"> <fo:layout-master-set> <fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.6in" margin-right="0.6in"> <fo:region-body margin-top="0.79in" margin-bottom="0.79in" /> </fo:simple-page-master> </fo:layout-master-set> </xsl:variable> <xsl:output version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="no" media-type="text/html" /> <xsl:template match="/"> <fo:root> <xsl:copy-of select="$fo:layout-master-set" /> <fo:page-sequence master-reference="default-page" initial-page-number="1" format="1"> <fo:flow flow-name="xsl-region-body"> <fo:block> <xsl:for-each select="hello"> <fo:inline color="#800000"> <xsl:apply-templates /> </fo:inline> </xsl:for-each> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet>
BinaryStreamServlet.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]