I am using Fop 0.94 with Resin 2.1.17 an Java 1.4. I am not exactly using a fo file ut a xslt with fo inside and a xml, here is the sample of the xslt file:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/> <!-- inclusion --> <xsl:include href="all.xsl"/> <xsl:template match="cahier"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm"> <fo:region-body margin-bottom="1cm" /> <fo:region-after extent="0.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simpleA4" initial-page-number="1"> <fo:static-content flow-name="xsl-region-after"> <fo:block text-align="end" font-size="70%" font-weight="normal"> <xsl:text>Page </xsl:text><fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body" font-size="60%" font-weight="normal" line-height="10px"> <xsl:call-template name="entete"/> <!-- Début de la cration --> <xsl:apply-templates select="cours"/> <xsl:apply-templates select="professeur"/> <xsl:call-template name="line"/> <xsl:if test="presentation/*"> <xsl:apply-templates select="definition"/> <xsl:call-template name="space"/> </xsl:if> <xsl:if test="coordonnees/*"> <xsl:apply-templates select="adresse"/> <xsl:call-template name="space"/> </xsl:if> <xsl:if test="materiel/*"> <xsl:apply-templates select="contenu"/> <xsl:call-template name="space"/> </xsl:if> <xsl:if test="evaluations/*"> <xsl:apply-templates select="examens"/> <xsl:call-template name="space"/> </xsl:if> <xsl:if test="/[EMAIL PROTECTED]"> <xsl:call-template name="lois" /> <xsl:call-template name="space"/> </xsl:if> <xsl:if test="cours/*"> <xsl:apply-templates select="cours"/> </xsl:if> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> I must also say that the program is running fine in a standalone version (web project) but once I integrate to a bigger project with lot of things in it I get the error. cbowditch wrote: > > pdiop wrote: >> I need your help everybody. I am getting the following error while >> running fop on resin : java.lang.NullPointerException at > > > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:290) > > > > at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) > > at com.caucho.xml.SAXBuilder.popElement(SAXBuilder.java:291) at > > What version of FOP are you running? Can you provide a sample FO that > causes the error (not XML + XSLT) > > Thanks, > > Chris > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-tp16713234p16721673.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
