OK., it is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY start "‡">
<!ENTITY stop "Š">
<!ENTITY tab "	">
<!ENTITY crlf " ">
<!ENTITY bull "•">
]>
<xsl:stylesheet version="2.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:barcode="http://barcode4j.krysalis.org/ns">
<xsl:output encoding="UTF-8" indent="no"/>
<xsl:strip-space elements="*" />
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="page-domestic"
page-height="279mm" page-width="210mm" margin-top="8mm" margin-left="1cm"
margin-bottom="2mm" margin-right="1cm">
<fo:region-body region-name="content" margin-top="25mm"/>
<fo:region-before region-name="header-domestic"
extent="15mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page-domestic"
force-page-count="no-force">
<fo:static-content flow-name="header-domestic" >
<xsl:call-template name="ReportHeader" />
</fo:static-content>
<fo:flow flow-name="content" font-size="12pt">
<fo:block>
content
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template name="ReportHeader">
<fo:block>
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="20%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block text-align="center">
<fo:instream-foreign-object>
<barcode:barcode>
<xsl:attribute name="message">
<xsl:value-of select="123"/>
</xsl:attribute>
<barcode:intl2of5>
<barcode:height>11mm</barcode:height>
<barcode:module-width>0.375mm</barcode:module-width>
<barcode:wide-factor>3.0</barcode:wide-factor>
<barcode:checksum>add</barcode:checksum>
<human-readable>
<placement>bottom</placement>
<font-name>Arial</font-name>
<font-size>8pt</font-size>
<display-checksum>true</display-checksum>
</human-readable>
</barcode:intl2of5>
</barcode:barcode>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
</xsl:stylesheet>
And error: java.util.MissingResourceException: Can't find resource for bundle
org.apache.fop.util.XMLResourceBundle, key
org.apache.fop.fo.FOValidationEventProducer.unknownFormattingObject
Of course the library barcode4j-fop-ext-complete is attached.
When I used fop 0.95 everything is ok.
Regerds
Bogusław Fries
________________________________
From: Eric Douglas [mailto:[email protected]]
Sent: Tuesday, July 19, 2011 1:47 PM
To: [email protected]
Subject: RE: unknownFormattingObject
Try attaching a sample so someone can reproduce it.
________________________________
From: Boguslaw Fries [mailto:[email protected]]
Sent: Tuesday, July 19, 2011 5:03 AM
To: [email protected]
Subject: unknownFormattingObject
Hi,
I am using FOP version 1.0
I got the following error
java.util.MissingResourceException: Can't find resource for bundle
org.apache.fop.util.XMLResourceBundle, key
org.apache.fop.fo.FOValidationEventProducer.unknownFormattingObject
When I am using FOP 0.95 - same data and same tranformation - there is no error.
How to diagnose it?
Regards
________
Bogusław Fries
DPD Polska Sp. z o.o.
02-274 Warszawa, ul. Mineralna 15
mobile: 502 777 254
[email protected] <BLOCKED::mailto:[email protected]>