Hi! I try to use camel-fop with ServiceMix.
I made a route in Eclipse, test it in Eclipse - everything is Ok.

But after deploying it in ServiceMix I've got the error:
*"javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: Element "fo:simple-page-master" is
missing required property "master-name"
*

*Here is the part of xsl-fo (from ServiceMix log) - incorrect one:*

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:fox="http://xml.apache.org/fop/extensions";>
<fo:layout-master-set>

<fo:simple-page-master>
<fo:region-body/>
</fo:simple-page-master

<fo:simple-page-master>
<fo:region-body/>
</fo:simple-page-master>

<fo:page-sequence-master>
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference/>
<fo:conditional-page-master-reference/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence>
<fo:flow>
<fo:block>
<fo:block>
<fo:inline/>
</fo:block>
</fo:block>
<fo:block>
.....

<fo:table>
<fo:table-column/>
<fo:table-column/>
<fo:table-column/>
<fo:table-column/>
<fo:table-column/>
<fo:table-column/>
<fo:table-column/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<fo:inline/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>Doc №</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>12-5789</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>Cod</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
....

As you see - many is lost.


*And this is the correct one, when I try and get it by Eclipse:*

<?xml version="1.0" encoding="UTF-8"?><fo:root
xmlns:fox="http://xml.apache.org/fop/extensions";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
<fo:simple-page-master master-name="first" margin-right="0.8cm"
margin-left="0.8cm" margin-bottom="1.0cm" margin-top="1.5cm"
page-width="29.7cm" page-height="21cm">
<fo:region-body margin-bottom="0.5cm" margin-top="0cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="rest" margin-right="0.8cm"
margin-left="0.8cm" margin-bottom="1.0cm" margin-top="1.5cm"
page-width="29.7cm" page-height="21cm">
<fo:region-body margin-bottom="0.5cm" margin-top="0cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference page-position="first"
master-reference="first"/>
<fo:conditional-page-master-reference page-position="rest"
master-reference="rest"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="document" language="ru"
hyphenate="true">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always" line-height="100%" margin-bottom="0cm">
<fo:inline white-space-collapse="false"/>
</fo:block>
</fo:block>
...

Any help is very appreciated!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-fop-does-not-work-properly-with-ServiceMix-5-4-0-error-creating-XSL-FO-tp5767810.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to