Project

Profile

Help

Transforming with compile XSLT -Saxon 9.1.x.x

Added by Anonymous over 13 years ago

Legacy ID: #8615961 Legacy Poster: pvallone (pvallone)

Hi, I have a compiled stylesheet (.sxx) that was compiled in an earlier version of Saxon. I think, 9.0. Can I run this compiled version on 9.1.x.x? I ask because I am getting this error: [code]java.io.InvalidClassException: net.sf.saxon.expr.Optimizer; local class incompatible: stream classdesc serialVersionUID = -4843906557053710688, local class serialVersionUID = 402074181221448295[/code] Thanks


Replies (2)

RE: Transforming with compile XSLT -Saxon 9.1.x.x - Added by Anonymous over 13 years ago

Legacy ID: #8616056 Legacy Poster: Michael Kay (mhkay)

Saxon compiled stylesheets can only be run under exactly the same version that they were compiled under. This even extends to maintenance releases. Sorry about the inconvenience. (I could solve half the problem by allocating stable versionIds to the classes. But that would still leave the other half of the problem, which is that the compiled format is strongly dependent on the implementation classes, and there are often good reasons for changing these from one release to the next, for example to implement optimizations.)

RE: Transforming with compile XSLT -Saxon 9.1.x.x - Added by Anonymous over 13 years ago

Legacy ID: #8616061 Legacy Poster: pvallone (pvallone)

Thanks Michael, No worries, I just need to plug-in the order version of Saxon and run it that way. Thanks.

    (1-2/2)

    Please register to reply