Re: [Barcode4j-users] problem using Saxon extension

Jeremias Maerki <[email protected]> Thu, 08 Apr 2004 11:56:09 +0200
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Hello Christophe,

I've tried to reproduce your problem but didn't manage. I didn't see any
problem in what you posted. I've copied your code snippets in a minimal
wrapper to do the same you did but everything looks fine save that I've
stumbled on different problem not showing in the testsuite (It actually
works fine there, but then, it's not XSL-FO but I don't see, yet, how
this should be different). The FO generated in my test is not
well-formed as SAXON seems to write a new XML prolog in front of the
generated SVG fragment. I'll have to investigate further where the
problem is.

One thought on your problem was this: Are you sure that SAXON is active
as JAXP Transformer? Do you get the same error if you remove SAXON from
the classpath (assuming you're using JDK 1.4 or later and you are
implicitely using Xalan-J). In certain cases you have to specify...
-Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactoryImpl
...at VM-startup.

You're using XSL-FO. Are you using FOP? In that case you could try to
use the FOP extension for FOP 0.20.5 instead of the SAXON extension as a
momentary work-around. I'll keep you updated.

On 08.04.2004 10:39:37 Stagiaire vif2 (Christophe Mahé) wrote:
> Hi,
> when I try to use Saxon extension to generate barcode in SVG format
> during XSLT Transformation, I get the following error : (I use the "old"
> krysalis-barcode.jar 1.0beta and not the new barcode4j)
> Error at barcode:barcode on line 429 of file ....
>             Unknokn extension element
> Transformation failes: Run-time errors were reported
> 
> However I follow all the instructions for the Saxon extension :
> 1) set the classpath
> 2) add xmlns:barcode=
> 
> "http://www.krysalis.org/barcode/org.krysalis.barcode.saxon.BarcodeExtensionElementFactory"
> 
>     extension-element-prefixes="barcode">
> 3) insert <fo:block>
>     <fo:instream-foreign-object>
>       <barcode:barcode message="{msg}">
>         <barcode:code128>
>           <barcode:height>8mm</barcode:height>
>         </barcode:code128>
>       </barcode:barcode>
>     </fo:instream-foreign-object>
>   </fo:block>
> in my code.
> 
> What is the matter ?


Jeremias Maerki



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click