Hi Sergiu, Many thanks for the response > This looks like an XSLT error, not a FOP one. Are you using such a > transformation to obtain the XSL-FO document from another XML file? I'm using an XSL file to get a PDF document from an XML file the example from: http://www.codeproject.com/KB/java/PDFGeneration_XSLFO_FOP.aspx I used the files from this site specifically because they work in a stand alone code. XML File: ---------------------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?> <root> <name>shyam</name> <friend> <name>Abc</name> <phNo>90909090909</phNo> </friend> <friend> <name>Xyz</name> <phNo>32323232323</phNo> </friend> </root> ______________________________________________________________________ XSL File: ---------------------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.1" xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> <xsl:template match="root"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="my-page"> <fo:region-body margin="1in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="my-page"> <fo:flow flow-name="xsl-region-body"> <fo:block>Hello, <xsl:value-of select="name" />!</fo:block> <fo:block> <fo:table> <fo:table-body> <fo:table-row> <fo:table-cell border="solid 1px black" text-align="center" font-weight="bold"> <fo:block> No. </fo:block> </fo:table-cell> <fo:table-cell border="solid 1px black" text-align="center" font-weight="bold"> <fo:block> Name </fo:block> </fo:table-cell> <fo:table-cell border="solid 1px black" text-align="center" font-weight="bold"> <fo:block> Phone Number </fo:block> </fo:table-cell> </fo:table-row> <xsl:for-each select="./friend"> <fo:table-row> <fo:table-cell border="solid 1px black" text-align="center"> <fo:block> <xsl:value-of select="position()" /> </fo:block> </fo:table-cell> <fo:table-cell border="solid 1px black" text-align="center"> <fo:block> <xsl:value-of select="name" /> </fo:block> </fo:table-cell> <fo:table-cell border="solid 1px black" text-align="center"> <fo:block> <xsl:value-of select="phNo" /> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet> ______________________________________________________________________
> If it fails in an applet but works standalone, I'd say the difference > that triggers the error is in the classpath; a different XSLT processor > is used in the applet (or at least a different version of saxon). I think this might be the problem, but how do I check the difference? I used the saxon8.jar because it is referenced from the fop.jar's manifest file & I'm using JRE 1.6. Regards, Kamo
