#803 Stylesheet param with xs:integer type is not serializable

v9.0
closed
Michael Kay
5
2012-10-08
2008-04-08
Harald Schmitt
No

A global stylesheet param like:
<xsl:param name="global-integer" as="xs:integer">200</xsl:param>
throws a java.io.NotSerializableException when serializing with net.sf.saxon.Compile.

The Exception does not occur, when ommitting as="xs:integer"

Windows Vista 32bit
Saxon 9.0.0.4J from Saxonica
Java version 1.6.0_03

Discussion

  • Harald Schmitt
    Harald Schmitt
    2008-04-08

    Stylesheet wich generates the bug when compiling it with net.sf.saxon.Compile

     
  • Michael Kay
    Michael Kay
    2008-04-09

    Logged In: YES
    user_id=251681
    Originator: NO

    I have placed a patch for this in Subversion.

    The problem more specifically occurs when a global parameter (perhaps also a global variable) has its initial value defined by the element content rather than a select expression and there is an "as" attribute.

    Please note that I generally ask for suspected bugs to be notified first via the mailing list or forum. This is mainly to ensure that the bug register is not cluttered with requests for help and advice. Although your entry cannot be faulted, you should also note that if you don't assign it to anybody, it only gets picked up by chance.

     
  • Michael Kay
    Michael Kay
    2008-05-12

    Logged In: YES
    user_id=251681
    Originator: NO

    Fixed in 9.0.0.5