Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 JDOM beta 8 fails - ID: 542981
Last Update: Comment added ( mhkay )

Saxon 6.5.1 and 7.0 were tested with JDOM beta 7, and
they do not work with JDOM beta 8, which has made
incompatible changes to the way text nodes are
represented.

Source code fixed in both branches (tested in the 7.0
branch only). The new code works with both JDOM beta 7
and JDOM beta 8.

At line 56 of jdom.NodeWrapper, change
if (node instanceof String)
to
if (node instanceof String || node instanceof Text)

The change to JDOM means that the wrapper need no
longer maintain a pointer to the wrapper for the
parent node; however, I have left it in for the time
being.


Michael Kay ( mhkay ) - 2002-04-12 13:11

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2002-08-28 13:10
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 7.2


Date: 2002-04-26 17:00
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

The change turned out to be incomplete. The check for text
nodes also needs to be made around line 258, 283, and 502.

The main symptom is that getStringValue() on an element
node or text node doesn't work. This means that <xsl:value-
of select="."/> gives an empty string.

So beta 0.8 doesn't work with either 6.5.2 or 7.0.
Source code fixed in both branches, tested with 7.1


Date: 2002-04-12 17:35
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 6.5.2


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2002-08-28 13:10 mhkay
resolution_id None 2002-08-28 13:10 mhkay
close_date - 2002-08-28 13:10 mhkay