You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by cferrero <cr...@hotmail.com> on 2008/01/23 13:30:48 UTC
BARCODR4J
Using BARCODR4J i tried to replace message of the barcode with xml data
following examples xsl and xml...
but an error appears (i send xsl fragment and errors in document)
http://www.nabble.com/file/p15040023/error.doc error.doc
--
View this message in context: http://www.nabble.com/BARCODR4J-tp15040023p15040023.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: BARCODR4J
Posted by Cristian Ferrero <cr...@hotmail.com>.
I resolved this ..was
message="{NOTICE_DATA/NOTICE_NUMBER}">
instead
message="{/NOTICE_DATA/NOTICE_NUMBER}">
thanks
----- Original Message -----
From: "Cristian Ferrero" <cr...@hotmail.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, January 23, 2008 10:43 AM
Subject: Re: BARCODR4J
> sorry by still have problem...i attach my complete xsl
>
> regards
>
> ----- Original Message -----
> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> To: <fo...@xmlgraphics.apache.org>
> Sent: Wednesday, January 23, 2008 10:33 AM
> Subject: Re: BARCODR4J
>
>
> My mistake. I thought you were using Barcode4J 2.x. There was a little
> bug in an earlier version of Barcode4J where "messsage" was not
> recognized although it was documented this way. Just rename the "message"
> attribute to "msg".
>
> http://barcode4j.sourceforge.net/1.0/fop-ext.html#Using+the+barcode+extension+for+Apache+FOP
>
> On 23.01.2008 14:22:13 Cristian Ferrero wrote:
>> Here is my xsl modified with your example....i still have the error
>>
>>
>> GRAVE: Some XML content will be ignored. Could not render XML
>> java.lang.NullPointerException: Parameter msg must not be empty
>> at
>> org.krysalis.barcode4j.impl.code39.Code39Bean.generateBarcode(Code39B
>> ean.java:168)
>> at
>> org.krysalis.barcode4j.impl.ConfigurableBarcodeGenerator.generateBarc
>> ode(ConfigurableBarcodeGenerator.java:133)
>> at
>> org.krysalis.barcode4j.fop.BarcodeXMLHandler.convertToSVG(BarcodeXMLH
>> andler.java:217)
>> at
>> org.krysalis.barcode4j.fop.BarcodeXMLHandler.handleXML(BarcodeXMLHand
>> ler.java:114)
>> at
>> org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.jav
>> a:813)
>> at
>> org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java
>> :169)
>> at
>> org.apache.fop.render.AbstractPathOrientedRenderer.renderForeignObjec
>> t(AbstractPathOrientedRenderer.java:703)
>>
>> regards
>>
>>
>>
>>
>>
>> ----- Original Message -----
>> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
>> To: <fo...@xmlgraphics.apache.org>
>> Sent: Wednesday, January 23, 2008 10:07 AM
>> Subject: Re: BARCODR4J
>>
>>
>> The example in the error.doc is incomplete. You probably forgot to
>> declare the namespace for Barcode4J on the root node of the XSLT. But I
>> would suggest you don't use the Xalan extension because that's slower
>> than the FOP extension. Replace the snippet in error.doc with the
>> following:
>>
>> <fo:instream-foreign-object>
>> <barcode:barcode
>> xmlns:barcode="http://barcode4j.krysalis.org/ns"
>> message="{/NOTICE_DATA/NOTICE_NUMBER}">
>> <barcode:code39>
>> <barcode:height>10mm</barcode:height>
>> <barcode:human-readable>none</barcode:human-readable>
>> <barcode:quiet-zone enabled="false"/>
>> </barcode:code39>
>> </barcode:barcode>
>> </fo:instream-foreign-object>
>>
>> On 23.01.2008 13:30:48 cferrero wrote:
>> >
>> > Using BARCODR4J i tried to replace message of the barcode with xml data
>> > following examples xsl and xml...
>> > but an error appears (i send xsl fragment and errors in document)
>> > http://www.nabble.com/file/p15040023/error.doc error.doc
>> > --
>> > View this message in context:
>> > http://www.nabble.com/BARCODR4J-tp15040023p15040023.html
>> > Sent from the FOP - Users mailing list archive at Nabble.com.
>>
>>
>>
>>
>> Jeremias Maerki
>>
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
--------------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: BARCODR4J
Posted by Cristian Ferrero <cr...@hotmail.com>.
sorry by still have problem...i attach my complete xsl
regards
----- Original Message -----
From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, January 23, 2008 10:33 AM
Subject: Re: BARCODR4J
My mistake. I thought you were using Barcode4J 2.x. There was a little
bug in an earlier version of Barcode4J where "messsage" was not
recognized although it was documented this way. Just rename the "message"
attribute to "msg".
http://barcode4j.sourceforge.net/1.0/fop-ext.html#Using+the+barcode+extension+for+Apache+FOP
On 23.01.2008 14:22:13 Cristian Ferrero wrote:
> Here is my xsl modified with your example....i still have the error
>
>
> GRAVE: Some XML content will be ignored. Could not render XML
> java.lang.NullPointerException: Parameter msg must not be empty
> at
> org.krysalis.barcode4j.impl.code39.Code39Bean.generateBarcode(Code39B
> ean.java:168)
> at
> org.krysalis.barcode4j.impl.ConfigurableBarcodeGenerator.generateBarc
> ode(ConfigurableBarcodeGenerator.java:133)
> at
> org.krysalis.barcode4j.fop.BarcodeXMLHandler.convertToSVG(BarcodeXMLH
> andler.java:217)
> at
> org.krysalis.barcode4j.fop.BarcodeXMLHandler.handleXML(BarcodeXMLHand
> ler.java:114)
> at
> org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.jav
> a:813)
> at
> org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java
> :169)
> at
> org.apache.fop.render.AbstractPathOrientedRenderer.renderForeignObjec
> t(AbstractPathOrientedRenderer.java:703)
>
> regards
>
>
>
>
>
> ----- Original Message -----
> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> To: <fo...@xmlgraphics.apache.org>
> Sent: Wednesday, January 23, 2008 10:07 AM
> Subject: Re: BARCODR4J
>
>
> The example in the error.doc is incomplete. You probably forgot to
> declare the namespace for Barcode4J on the root node of the XSLT. But I
> would suggest you don't use the Xalan extension because that's slower
> than the FOP extension. Replace the snippet in error.doc with the
> following:
>
> <fo:instream-foreign-object>
> <barcode:barcode
> xmlns:barcode="http://barcode4j.krysalis.org/ns"
> message="{/NOTICE_DATA/NOTICE_NUMBER}">
> <barcode:code39>
> <barcode:height>10mm</barcode:height>
> <barcode:human-readable>none</barcode:human-readable>
> <barcode:quiet-zone enabled="false"/>
> </barcode:code39>
> </barcode:barcode>
> </fo:instream-foreign-object>
>
> On 23.01.2008 13:30:48 cferrero wrote:
> >
> > Using BARCODR4J i tried to replace message of the barcode with xml data
> > following examples xsl and xml...
> > but an error appears (i send xsl fragment and errors in document)
> > http://www.nabble.com/file/p15040023/error.doc error.doc
> > --
> > View this message in context:
> > http://www.nabble.com/BARCODR4J-tp15040023p15040023.html
> > Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
>
>
> Jeremias Maerki
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: BARCODR4J
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
My mistake. I thought you were using Barcode4J 2.x. There was a little
bug in an earlier version of Barcode4J where "messsage" was not
recognized although it was documented this way. Just rename the "message"
attribute to "msg".
http://barcode4j.sourceforge.net/1.0/fop-ext.html#Using+the+barcode+extension+for+Apache+FOP
On 23.01.2008 14:22:13 Cristian Ferrero wrote:
> Here is my xsl modified with your example....i still have the error
>
>
> GRAVE: Some XML content will be ignored. Could not render XML
> java.lang.NullPointerException: Parameter msg must not be empty
> at
> org.krysalis.barcode4j.impl.code39.Code39Bean.generateBarcode(Code39B
> ean.java:168)
> at
> org.krysalis.barcode4j.impl.ConfigurableBarcodeGenerator.generateBarc
> ode(ConfigurableBarcodeGenerator.java:133)
> at
> org.krysalis.barcode4j.fop.BarcodeXMLHandler.convertToSVG(BarcodeXMLH
> andler.java:217)
> at
> org.krysalis.barcode4j.fop.BarcodeXMLHandler.handleXML(BarcodeXMLHand
> ler.java:114)
> at
> org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.jav
> a:813)
> at
> org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java
> :169)
> at
> org.apache.fop.render.AbstractPathOrientedRenderer.renderForeignObjec
> t(AbstractPathOrientedRenderer.java:703)
>
> regards
>
>
>
>
>
> ----- Original Message -----
> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> To: <fo...@xmlgraphics.apache.org>
> Sent: Wednesday, January 23, 2008 10:07 AM
> Subject: Re: BARCODR4J
>
>
> The example in the error.doc is incomplete. You probably forgot to
> declare the namespace for Barcode4J on the root node of the XSLT. But I
> would suggest you don't use the Xalan extension because that's slower
> than the FOP extension. Replace the snippet in error.doc with the
> following:
>
> <fo:instream-foreign-object>
> <barcode:barcode
> xmlns:barcode="http://barcode4j.krysalis.org/ns"
> message="{/NOTICE_DATA/NOTICE_NUMBER}">
> <barcode:code39>
> <barcode:height>10mm</barcode:height>
> <barcode:human-readable>none</barcode:human-readable>
> <barcode:quiet-zone enabled="false"/>
> </barcode:code39>
> </barcode:barcode>
> </fo:instream-foreign-object>
>
> On 23.01.2008 13:30:48 cferrero wrote:
> >
> > Using BARCODR4J i tried to replace message of the barcode with xml data
> > following examples xsl and xml...
> > but an error appears (i send xsl fragment and errors in document)
> > http://www.nabble.com/file/p15040023/error.doc error.doc
> > --
> > View this message in context:
> > http://www.nabble.com/BARCODR4J-tp15040023p15040023.html
> > Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
>
>
> Jeremias Maerki
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: BARCODR4J
Posted by Cristian Ferrero <cr...@hotmail.com>.
Here is my xsl modified with your example....i still have the error
GRAVE: Some XML content will be ignored. Could not render XML
java.lang.NullPointerException: Parameter msg must not be empty
at
org.krysalis.barcode4j.impl.code39.Code39Bean.generateBarcode(Code39B
ean.java:168)
at
org.krysalis.barcode4j.impl.ConfigurableBarcodeGenerator.generateBarc
ode(ConfigurableBarcodeGenerator.java:133)
at
org.krysalis.barcode4j.fop.BarcodeXMLHandler.convertToSVG(BarcodeXMLH
andler.java:217)
at
org.krysalis.barcode4j.fop.BarcodeXMLHandler.handleXML(BarcodeXMLHand
ler.java:114)
at
org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.jav
a:813)
at
org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java
:169)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderForeignObjec
t(AbstractPathOrientedRenderer.java:703)
regards
----- Original Message -----
From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, January 23, 2008 10:07 AM
Subject: Re: BARCODR4J
The example in the error.doc is incomplete. You probably forgot to
declare the namespace for Barcode4J on the root node of the XSLT. But I
would suggest you don't use the Xalan extension because that's slower
than the FOP extension. Replace the snippet in error.doc with the
following:
<fo:instream-foreign-object>
<barcode:barcode
xmlns:barcode="http://barcode4j.krysalis.org/ns"
message="{/NOTICE_DATA/NOTICE_NUMBER}">
<barcode:code39>
<barcode:height>10mm</barcode:height>
<barcode:human-readable>none</barcode:human-readable>
<barcode:quiet-zone enabled="false"/>
</barcode:code39>
</barcode:barcode>
</fo:instream-foreign-object>
On 23.01.2008 13:30:48 cferrero wrote:
>
> Using BARCODR4J i tried to replace message of the barcode with xml data
> following examples xsl and xml...
> but an error appears (i send xsl fragment and errors in document)
> http://www.nabble.com/file/p15040023/error.doc error.doc
> --
> View this message in context:
> http://www.nabble.com/BARCODR4J-tp15040023p15040023.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: BARCODR4J
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
The example in the error.doc is incomplete. You probably forgot to
declare the namespace for Barcode4J on the root node of the XSLT. But I
would suggest you don't use the Xalan extension because that's slower
than the FOP extension. Replace the snippet in error.doc with the
following:
<fo:instream-foreign-object>
<barcode:barcode
xmlns:barcode="http://barcode4j.krysalis.org/ns"
message="{/NOTICE_DATA/NOTICE_NUMBER}">
<barcode:code39>
<barcode:height>10mm</barcode:height>
<barcode:human-readable>none</barcode:human-readable>
<barcode:quiet-zone enabled="false"/>
</barcode:code39>
</barcode:barcode>
</fo:instream-foreign-object>
On 23.01.2008 13:30:48 cferrero wrote:
>
> Using BARCODR4J i tried to replace message of the barcode with xml data
> following examples xsl and xml...
> but an error appears (i send xsl fragment and errors in document)
> http://www.nabble.com/file/p15040023/error.doc error.doc
> --
> View this message in context: http://www.nabble.com/BARCODR4J-tp15040023p15040023.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org