This is a pretty vague reply but I ran into the same problem when moving from C2.0.3 to C2.1 but I can't remember exactly what I did to fix it. I do know it has to do with Cocoon because the same files were working fine under C2.0.3.
Check the error log (%PATH_TO_COCOON/WEB_INF/logs). I think it had to with some jars (xalan-2.4.1.jar, xercesImpl-2.1.0.jar and xml-apis.jar) not being in the common\endorsed of the tomcat installation. Perry ----- Original Message ----- From: "Antonio Gallardo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 30, 2002 11:04 PM Subject: Re: pdf problem > Hi Ines: > > Assuming that the PDF generation is right. There is a problem with Adobe > Acrobat Reader. Try to set in the configuration of Acrobat that will not > open on the same windows (explorer). It must resolve your problem. > > Regards, > > Antonio Gallardo. > > Ines Robbers dijo: > > Hi there, > > > > I'm running Cocoon 2.0.4 on Windows XP and Tomcat 4.1. > > > > At the moment I'm trying out the examples from the book "Cocoon: > > Building XML Applications" by M. Langham & C. Ziegler. > > > > In case of PDF-creation, Acrobat is starting to load the file but then a > > window pops up saying: "The file is damaged and could not be repaired". > > (Acrobat itself is working fine with other pdf) > > > > > > This is the Sitemap fragment: > > > > <map:pipeline> > > <map:match pattern="myfirstpdf"> > > <map:generate src="myfirstpdf.xml"/> > > <map:transform src="myfirstpdf.xsl"/> > > <map:serialize type="fo2pdf"/> > > </map:match> > > </map:pipeline> > > > > > > This is the XML: > > > > <?xml version="1.0"?> > > <data> > > <name>Ines</name> > > </data> > > > > > > And the XSL: > > > > <?xml version="1.0"?> > > > > <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="/"> > > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > > > > <fo:layout-master-set> > > <fo:simple-page-master master-name="page" > > page-height="29.7cm" > > page-width="21cm" > > margin-top="1cm" > > margin-bottom="2cm" > > margin-left="2.5cm" > > margin-right="2.5cm"> > > <fo:region-before extent="3cm"/> > > <fo:region-body margin-top="3cm"/> > > <fo:region-after extent="1.5cm"/> > > </fo:simple-page-master> > > > > <fo:page-sequence-master master-name="all"> > > <fo:repeatable-page-master-alternatives> > > <fo:conditional-page-master-reference master-name="page" > > page-position="first"/> > > </fo:repeatable-page-master-alternatives> > > </fo:page-sequence-master> > > </fo:layout-master-set> > > > > <fo:page-sequence master-name="all"> > > <fo:flow flow-name="xsl-region-body"> > > <xsl:apply-templates/> > > </fo:flow> > > </fo:page-sequence> > > </fo:root> > > </xsl:template> > > > > <xsl:template match="data"> > > <fo:block font-size="36pt" space-before.optimum="24pt" > > text-align="center"><xsl:value-of select="name"/></fo:block> > > </xsl:template> > > > > </xsl:stylesheet> > > > > > > I've also tried it with different filenames in different folders but > > it's always the same error message. > > > > Anyone got an idea? > > > > Many thanks for help! > > > > > > Ines > > > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>