Erik Stunkat wrote: > Hi Yann, see the log files in: \tomcat\webapps\cocoon\WEB-INF\logs
yes, I looked at them but didn't find any errors :-( > they should give you some hints or try xalan to convert your xml to pdf with > the stylesheets to find the error. I have tried to do that : the xml -> xsl:fo translation seems to work, but when I try to use fo2pdf to generate the PDF it fails ! (using xalan and the command line transformation) I tried then to use cocoon to do the last transformation : <map:match pattern="docbook/testfo"> <map:generate src="docs/samples/docbook/test.fo"/> <map:serialize type="fo2pdf"/> </map:match> Sorry for the dump : here is access.log INFO (2002-02-06) 10:11.27:453 [access] (/cocoon/testfo) HttpProcessor[8080][4]/CocoonServlet: 'testfo' Processed by Apache Cocoon 2.1- dev in 28 milliseconds. DEBUG (2002-02-06) 10:11.38:126 [access] (/cocoon/docbook/testfo) HttpProcessor[8080][4]/AbstractEnvironment: Changing Cocoon context(si temap.xmap) to prefix() DEBUG (2002-02-06) 10:11.38:126 [access] (/cocoon/docbook/testfo) HttpProcessor[8080][4]/AbstractEnvironment: from context(file:/s hared/java/applications/jakarta-tomcat-4.0.1/bin/./../webapps/cocoon/) and prefix() DEBUG (2002-02-06) 10:11.38:126 [access] (/cocoon/docbook/testfo) HttpProcessor[8080][4]/AbstractEnvironment: at URI docbook/testf o DEBUG (2002-02-06) 10:11.38:127 [access] (/cocoon/docbook/testfo) HttpProcessor[8080][4]/AbstractEnvironment: New context is file:/share d/java/applications/jakarta-tomcat-4.0.1/webapps/cocoon/ DEBUG (2002-02-06) 10:11.38:160 [access] (/cocoon/docbook/testfo) HttpProcessor[8080][4]/AbstractEnvironment: Resolving 'docs/samples/do cbook/test.fo' in context 'file:/shared/java/applications/jakarta-tomcat-4.0.1/webapps/cocoon/' DEBUG (2002-02-06) 10:11.38:161 [access] (/cocoon/docbook/testfo) HttpProcessor[8080][4]/AbstractEnvironment: Resolved to 'file:/shared/ java/applications/jakarta-tomcat-4.0.1/webapps/cocoon/docs/samples/docbook/test.fo' So everything seems to work nicely, but I never get any answers from my HTTP request ... > Do you have images in your xml? No, I start slowly :) I have joined the document in attachment (and the XSL:FO document generated by xalan). Tahnks,yann. -- / Yann SECQ Equipe SMAC [EMAIL PROTECTED] \ | Multi-Agent Systems Modeling & Agent Oriented Programming | \ http://www.lifl.fr/SMAC http://www.lifl.fr/~secq /
<?xml version='1.0'?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <book> <title>foo</title> <chapter><title>bar</title> <para> foo </para> <informaltable> <tgroup cols="1"> <tbody> <row> <entry>foo</entry></row> <row><entry>bar</entry></row> </tbody> </tgroup> </informaltable> <table><title>bar</title> <tgroup cols="1"> <tbody> <row><entry>bar</entry></row> </tbody> </tgroup> </table> </chapter> <glossary> <glossentry><glossterm>foo</glossterm> <indexterm><primary>foo</primary></indexterm> <glossdef> <para> Some appropriate definition goes here. </para> </glossdef> </glossentry> </glossary> </book>
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" text-align="justify" font-size="10pt" font-family="Times Roman"> <fo:layout-master-set> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="blank"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-blank"/> <fo:region-after extent="12pt" region-name="xsl-region-after-blank"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="simple1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt"/> <fo:region-after extent="12pt"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="left1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-left"/> <fo:region-after extent="12pt" region-name="xsl-region-after-left"/> </fo:simple-page-master> <fo:simple-page-master margin-right="10pc" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="right1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-right"/> <fo:region-after extent="12pt" region-name="xsl-region-after-right"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="first1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-first"/> <fo:region-after extent="12pt" region-name="xsl-region-after-first"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="simple2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt"/> <fo:region-after extent="12pt"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="left2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt" region-name="xsl-region-before-left"/> <fo:region-after extent="12pt" region-name="xsl-region-after-left"/> </fo:simple-page-master> <fo:simple-page-master margin-right="10pc" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="right2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt" region-name="xsl-region-before-right"/> <fo:region-after extent="12pt" region-name="xsl-region-after-right"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="first2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt" region-name="xsl-region-before-first"/> <fo:region-after extent="12pt" region-name="xsl-region-after-first"/> </fo:simple-page-master> <fo:page-sequence-master master-name="titlepage1"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="first1"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="oneside1"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="simple1"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="twoside1"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference blank-or-not-blank="blank" master-name="blank"/> <fo:conditional-page-master-reference odd-or-even="odd" master-name="right1"/> <fo:conditional-page-master-reference odd-or-even="even" master-name="left1"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="titlepage2"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="first2"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="oneside2"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="simple2"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="twoside2"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference blank-or-not-blank="blank" master-name="blank"/> <fo:conditional-page-master-reference odd-or-even="odd" master-name="right2"/> <fo:conditional-page-master-reference odd-or-even="even" master-name="left2"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-name="titlepage1" hyphenate="true" id="N10001" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="24.8832pt" text-align="center" space-before="18.6624pt"> <fo:block hyphenate="false" keep-with-next.within-column="always">foo</fo:block> </fo:block> <fo:block break-after="page"/> <fo:block font-size="14.4pt" font-family="Helvetica" font-weight="bold"> <fo:block>foo</fo:block> </fo:block> <fo:block break-after="page"/> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="titlepage1" format="i" hyphenate="true" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc" space-after="1em">Table of Contents</fo:block> </fo:block> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always">1 bar</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N10005"> <fo:page-number-citation ref-id="N10005"/> </fo:basic-link> </fo:inline> </fo:block> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always"> Glossary</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N1001D"> <fo:page-number-citation ref-id="N1001D"/> </fo:basic-link> </fo:inline> </fo:block> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="titlepage1" format="i" hyphenate="true" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc" space-after="1em">List of Tables</fo:block> </fo:block> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always">1.1 bar</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N10014"> <fo:page-number-citation ref-id="N10014"/> </fo:basic-link> </fo:inline> </fo:block> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="oneside1" hyphenate="true" id="N10005" language="en" initial-page-number="1"> <fo:static-content flow-name="xsl-region-before"> <fo:block text-align="center"> <fo:block font-size="10pt">Chapter 1. bar</fo:block> </fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> <fo:block font-size="10pt" text-align="center"> <fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc"> <fo:block hyphenate="false" keep-with-next.within-column="always">Chapter 1. bar</fo:block> </fo:block> </fo:block> <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"> foo </fo:block> <fo:table> <fo:table-column column-number="1"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block>foo</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block>bar</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> <fo:table-and-caption space-after.maximum="1.2em" space-after.optimum="1em" space-after.minimum="0.8em" space-before.maximum="1.2em" space-before.optimum="1em" space-before.minimum="0.8em" keep-together.within-column="always" id="N10014"> <fo:table-caption> <fo:block hyphenate="false" keep-with-next.within-column="always" space-after.maximum="0.8em" space-after.optimum="0.5em" space-after.minimum="0.2em" font-weight="bold">bar</fo:block> </fo:table-caption> <fo:table> <fo:table-column column-number="1"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block>bar</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-and-caption> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="oneside1" hyphenate="true" id="N1001D" language="en"> <fo:static-content flow-name="xsl-region-after"> <fo:block font-size="10pt" text-align="center"> <fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-weight="bold" font-family="Helvetica" font-size="17.28pt" margin-left="-4pc"> <fo:block hyphenate="false" keep-with-next.within-column="always">Glossary</fo:block> </fo:block> </fo:block> <fo:list-block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" provisional-label-separation="0.25in" provisional-distance-between-starts="2in"> <fo:list-item space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" id="N1001E"> <fo:list-item-label end-indent="label-end()"> <fo:block>foo</fo:block> </fo:list-item-label> <fo:wrapper id="N10021"> <!--foo--> </fo:wrapper> <fo:list-item-body start-indent="body-start()"> <fo:block> Some appropriate definition goes here. </fo:block> </fo:list-item-body> </fo:list-item> </fo:list-block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>