ofbiz fop 报错 The processing instruction target matching "[xX][mM][lL]" is not allowed

在看Apache ofbiz --the beginner's tutorial.pdf 在fop那部分, 报如下的错误

[Fatal Error] :6:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.

2013-07-21 18:00:53,884 (http-bio-0.0.0.0-8080-exec-38) [ScreenFopViewHandler.java:121:ERROR] Unable to transform FO file: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.; Screen XSL:FO text was:
<?xml version="1.0" encoding="UTF-8"?>






<!-- Begin Template component://learning/webapp/learning/viewPDFs.fo.ftl -->
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="review-page">
<fo:region-body margin="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="review-page">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table text-align="center" table-layout="fixed">
<fo:table-column column-width="2.00cm"/>
<fo:table-column column-width="4.00cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block line-height="6pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt" keep-together="always">
<fo:inline font-size="6pt">Review Id</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block line-height="6pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt" keep-together="always">
<fo:inline font-size="6pt">Review</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block line-height="6pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt" keep-together="always">
<fo:inline font-size="6pt">1</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block line-height="6pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt" keep-together="always">
<fo:inline font-size="6pt">Nice Planet, I love it</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block line-height="6pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt" keep-together="always">
<fo:inline font-size="6pt">2</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block line-height="6pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt" keep-together="always">
<fo:inline font-size="6pt">What a great moon!</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>

</fo:root><!-- End Template component://learning/webapp/learning/viewPDFs.fo.ftl -->



解决办法: 去掉首行的<?xml version="1.0" encoding="UTF-8"?>, 然后程序正常运行!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值