xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogusław Fries <bfr...@dpd.com.pl>
Subject RE: unknownFormattingObject
Date Tue, 19 Jul 2011 12:10:57 GMT
OK., it is:

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE xsl:stylesheet [

<!ENTITY nbsp "&#160;">

<!ENTITY start "&#135;">

<!ENTITY stop "&#138;">

<!ENTITY tab "&#9;">

<!ENTITY crlf "&#13;&#10;">

<!ENTITY bull "&#8226;">

]>

<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:edouglas@blockhouse.com] 
Sent: Tuesday, July 19, 2011 1:47 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: unknownFormattingObject

 

Try attaching a sample so someone can reproduce it.

 

________________________________

From: Boguslaw Fries [mailto:bfries@dpd.com.pl] 
Sent: Tuesday, July 19, 2011 5:03 AM
To: fop-users@xmlgraphics.apache.org
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

bfries@dpd.com.pl <BLOCKED::mailto:bfries@dpd.com.pl> 

 

 


Mime
View raw message