Menu

#15 Saxon8 example in 1.0 fails

closed-works-for-me
nobody
None
5
2008-05-02
2008-05-01
No

Before launching the run.bat file in Saxon8 example folder I've copied saxon8.jar into lib folder. After launch the bat file the following messages appears:
Warning: at xsl:stylesheet on line 2 of Exception in thread "main" java.lang.NoSuchFieldError: attributeList
at org.krysalis.barcode4j.saxon8.BarcodeStyleElement.prepareAttributes(B
arcodeStyleElement.java:70)
at net.sf.saxon.style.StyleElement.processAttributes(StyleElement.java:3
78)
at net.sf.saxon.style.StyleElement.processAllAttributes(StyleElement.jav
a:343)
at net.sf.saxon.style.StyleElement.processAllAttributes(StyleElement.jav
a:351)
at net.sf.saxon.style.StyleElement.processAllAttributes(StyleElement.jav
a:351)
at net.sf.saxon.style.XSLStylesheet.processAllAttributes(XSLStylesheet.j
ava:933)
at net.sf.saxon.style.XSLStylesheet.preprocess(XSLStylesheet.java:659)
at net.sf.saxon.PreparedStylesheet.setStylesheetDocument(PreparedStylesh
eet.java:300)
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:127)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryIm
pl.java:135)
at net.sf.saxon.Transform.doTransform(Transform.java:479)
at net.sf.saxon.Transform.main(Transform.java:60)

Should example work properly by default or there is something else necessary to set?

Discussion

  • Jan Tosovsky

    Jan Tosovsky - 2008-05-01
    • summary: Saxon8 example in 2.0 alpha 2 fails --> Saxon8 example in 1.0 fails
     
  • Jan Tosovsky

    Jan Tosovsky - 2008-05-01

    Logged In: YES
    user_id=1330552
    Originator: YES

    Ooops, In original summary I've written wrong version of product. This item belongs to version 1.0.

     
  • Jeremias Märki

    Jeremias Märki - 2008-05-02

    Logged In: YES
    user_id=225352
    Originator: NO

    Saxon is somewhat of a moving target when it comes to writing extensions. I assume you're using an old Saxon 8. Unfortunately, Michael Kay changed the API for extension even within the same major version. I just noticed that the current code also won't work with Saxon 9 as the support for Java 1.3 seems to have been dropped. Sigh. My suggestion to you: upgrade to the latest Saxon 8 release.

     
  • Jeremias Märki

    Jeremias Märki - 2008-05-02
    • status: open --> closed-works-for-me
     

Log in to post a comment.