You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/03/05 20:34:21 UTC

DO NOT REPLY [Bug 5524] - Duplicated node is written to outputTarget on xsl:sort with -TS option.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5524>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5524

Duplicated node is written to outputTarget on xsl:sort with -TS option.





------- Additional Comments From art_w@eastpoint.com  2002-03-05 19:34 -------
I am also seeing this problem with XalanJ 2.3.0. I am using IBM JDK 1.3.0 under 
AIX 4.3.

It actually seems to be intermittent (for me anyway). It only happens some of 
the time with the same data and stylesheet. Once it starts it continues to 
create duplicate nodes until Tomcat is restarted.

For a work around (that seems to work so far), I have been getting a count of 
the elements before the sort. Then in the sorted for-each I only output nodes 
when the context position is less than or equal to the count. Fortunately I do 
not sort much (breaks incremental processing).

If I get some time and someone could point me at the appropriate sections of 
the code, I would try to take a look at this.

Art