sorry by still have problem...i attach my complete xsl

regards

----- Original Message ----- From: "Jeremias Maerki" <[EMAIL PROTECTED]>
To: <[email protected]>
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" <[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:fox="http://xml.apache.org/fop/extensions"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:saxon="http://icl.com/saxon"; extension-element-prefixes="saxon">
<xsl:template match="INVOICE_DETAIL_DATA">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:barcode="http://barcode4j.krysalis.org/ns";>
<fo:layout-master-set>
<fo:simple-page-master master-name="pagemaster1" page-height="845.0pt" page-width="598.0pt" margin-top="10.0pt" margin-left="10.0pt" margin-bottom="10.0pt" margin-right="10.0pt">
<fo:region-body margin-left="28.0pt" margin-top="36.0pt" margin-bottom="28.0pt" margin-right="28.0pt"/>
<fo:region-before extent="36.0pt" precedence="true"/>
<fo:region-after extent="28.0pt" precedence="true"/>
<fo:region-start extent="28.0pt" precedence="false"/>
<fo:region-end extent="28.0pt" precedence="false"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="pagemaster1" master-reference="pagemaster1">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
<fo:static-content flow-name="xsl-region-before">
<fo:block-container position="absolute" top="11.0pt" left="456.0pt" height="22.0pt" width="88.0pt" display-align="before">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="11.0pt" left="456.0pt" height="22.0pt" width="88.0pt" color="#000000" font-family="Arial" font-size="12.0pt">Pag nro :<fo:page-number/></fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block-container position="absolute" top="3.0pt" left="370.0pt" height="21.0pt" width="176.0pt">
<fo:block line-height="14.399999999999999pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="3.0pt" left="370.0pt" height="21.0pt" width="176.0pt" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:text>Prueba zamba</xsl:text></fo:block>
</fo:block-container>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block/>
<fo:block>
 <fo:instream-foreign-object>
     <barcode:barcode
           xmlns:barcode="http://barcode4j.krysalis.org/ns";
           msg="{/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>
</fo:block>
<fo:block-container position="absolute" top="4pt" left="2pt" height="752.0pt" width="536.0pt" border-width="1.0pt"> <fo:block span="none" white-space-collapse="false" font-family="Helvetica" font-size="12pt" text-align="start" position="relative" top="44pt" left="27pt" height="752.0pt" width="536.0pt"><fo:instream-foreign-object xmlns:xlink="http://www.w3.org/1999/xlink";><svg xmlns="http://www.w3.org/2000/svg"; xml:space="preserve" width="600" height="600" viewBox="0 0 1000 1000"> <g id="test-body-content"><text x="0" y="250" style="opacity:.1; font-family:Arial; font-size:200pt; fill:rgb(200,200,200)">XSLfast</text><text x="50" y="420" style="opacity:.1; font-family:Arial; font-size:200pt; fill:rgb(200,200,200)">DEMO</text></g></svg></fo:instream-foreign-object></fo:block></fo:block-container><fo:block-container position="absolute" top="21.0pt" left="325.0pt" height="25.0pt" width="135.0pt">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="21.0pt" left="325.0pt" height="25.0pt" width="135.0pt" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:value-of disable-output-escaping="no" select="NOTICE_DATA/NOTICE_GENERATION_DATE"/>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="70.0pt" left="329.0pt" height="25.0pt" width="128.0pt">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="70.0pt" left="329.0pt" height="25.0pt" width="128.0pt" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:value-of disable-output-escaping="no" select="NOTICE_DATA/NOTICE_NUMBER"/>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="78.0pt" left="216.0pt" height="21.0pt" width="94.0pt">
<fo:block line-height="14.399999999999999pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="78.0pt" left="216.0pt" height="21.0pt" width="94.0pt" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:text>Nro de factura</xsl:text></fo:block>
</fo:block-container>
<xsl:if test='position()=last()'>
<fo:block id="pageNumberCitation1"/>
</xsl:if>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to