xa = getAttributes(request.getParameter(pname), xa.tagID);
xupdateInsertAfter =
"<xupdate:insert-after select=\""
+ select
+ " \"><xupdate:element name=\""
+ new XPath(select).getNameWithoutPredicates()
+ "\""
+ namespaceAttribute
+ ">"
+ xa.xupdateAttrExpr
+ removeParent(request.getParameter(pname))
+ "</xupdate:element></xupdate:insert-after>";
} else {
xupdateInsertAfter =
"<xupdate:insert-after select=\""
+ select
+ " \"><xupdate:element name=\""
+ new XPath(select).getNameWithoutPredicates()
+ "\""
+ namespaceAttribute
+ ">"
+ xa.xupdateAttrExpr
+ request.getParameter(pname)
+ "</xupdate:element></xupdate:insert-after>";
}
log.debug(
".update(): Update Node (insert-after): " + xupdateInsertAfter);
String xupdateRemove =
"<xupdate:remove select=\"" + select + " \"/>";
log.debug(".update(): Update Node (remove): " + xupdateRemove);
String xupdateUpdateAttribute =
"<xupdate:update select=\""
+ new XPath(select).removePredicates(select)
+ "[@tagID='temp']/@tagID"
+ " \">"
+ xa.tagID
+ "</xupdate:update>";
log.debug(