Saxon incorrectly infers the static type of a variable
with no select attribute and no content (for example,
<xsl:variable name="x"/>). It infers a static type of
document-node() rather than xs:string. This can lead to
a ClassCastException when the variable is used,
especially if it is used incorrectly. For example, a
ClassCastException is thrown if the variable is
processed using <xsl:apply-templates select="$x"/>.
Source code fixed.
Test case added, type909err.
Michael Kay
XSLT conformance
v7.6.5
Public
| Field | Old Value | Date | By |
|---|---|---|---|
| resolution_id | None | 2003-10-06 16:08 | mhkay |
| close_date | - | 2003-10-06 16:08 | mhkay |
| status_id | Open | 2003-10-06 16:08 | mhkay |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use