Hi, Patrick, FOP can't function without some page-definition information.
Try adding the following template to your XSL file (to tell FOP the page layout details): <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="only" page-height="11in" page-width="8.5in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="1in"> <fo:region-body region-name="only-body"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="only"> <fo:flow flow-name="only-body"> <xsl:apply-templates/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> HTH Jay Bryant Bryant Communication Services ----- Original Message ----- From: "Patrick Proctor" <[EMAIL PROTECTED]> To: <fop-users@xmlgraphics.apache.org> Sent: Monday, January 30, 2006 5:17 PM Subject: Re: New User - Fop error. > I have the same problem, and I think it may be a bug. I have used FOP > examples from O'Reilly and W3C and I can't get any file, even the most > basic to work. Any help would be very much appreciated! Here are two > example input files: > > test.xsl: > <?xml version="1.0" encoding="UTF-8"?> > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > > <xsl:template match="data"> > <fo:block> > <xsl:apply-templates select="name"/> > <xsl:apply-templates select="description"/> > </fo:block> > </xsl:template> > > <xsl:template match="name"> > <fo:block font-size="18pt" > font-family="sans-serif" > line-height="24pt" > space-after.optimum="15pt" > background-color="blue" > color="white" > text-align="center" > padding-top="3pt"> > <xsl:value-of select="."/> > </fo:block> > </xsl:template> > > <xsl:template match="description"> > <fo:block font-size="12pt" > font-family="sans-serif" > line-height="15pt" > space-after.optimum="3pt" > text-align="justify"> > <xsl:value-of select="."/> > </fo:block> > </xsl:template> > > </xsl:stylesheet> > > test.xml: > <?xml version="1.0" encoding="UTF-8"?> > <data> > <name> > Krusty the Clown > </name> > <description> > This memo explains why Krusty the Clown is our best customer. > We need to take good care of him from now onwards and make sure > that there are always enough bananas for his pet monkey. > </description> > </data> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]