temp = contentSeq.itemAt(0);
if (!Type.subTypeOf(temp.getType(), Type.NODE))
{throw new XPathException(this,
Messages.getMessage(Error.UPDATE_REPLACE_ELEM_TYPE,
Type.getTypeName(temp.getType())));}
parent.replaceChild(transaction, ((NodeValue)temp).getNode(), node);
break;
case Node.TEXT_NODE:
text = new TextImpl(contentSeq.getStringValue());
text.setOwnerDocument(doc);
parent.updateChild(transaction, node, text);