#511 Text nodes not merged

v8.7.1
closed
5
2012-10-08
2006-04-26
Michael Kay
No

If two text nodes are individually copied to form the
content of an element node (for example, using xsl:copy
in XSLT, or implicitly in an element constructor in
XQuery) then they are not always merged to form a
single text node. Specifically, the problem occurs when
one of the two text nodes being copied is a compressed
whitespace node.

Source fix: in WhitespaceTextImpl.java (package
net.sf.saxon.tinytree) lines 70-72, change the copy()
method to read:

public void copy(Receiver out, int whichNamespaces,
boolean copyAnnotations, int locationId) throws
XPathException {
out.characters(getStringValueCS(), 0, 0);
}

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks