Michael Kay - 2005-05-03

Logged In: YES
user_id=251681

Fixed by changing method characters() in
SequenceOutputter.java to read:

public void characters(CharSequence s, int locationId, int
properties) throws XPathException {
if (inStartTag) {
startContent();
}
if (level == 0) {
Orphan o = new Orphan(getConfiguration());
o.setNodeKind(Type.TEXT);
o.setStringValue(s);
append(o, locationId, NodeInfo.ALL_NAMESPACES);
} else {
if (s.length() > 0) {
tree.characters(s, locationId, properties);
}
}
previousAtomic = false;
}

(this fixes the problem but has not been tested for
side-effects and I wouldn't recommend applying the patch
unless the problem affects you.)