Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Incorrect type for empty variable - ID: 783382
Last Update: Settings changed ( mhkay )

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 ( mhkay ) - 2003-08-05 08:57

5

Closed

Fixed

Michael Kay

XSLT conformance

v7.6.5

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Changes ( 3 )

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