DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=25892>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=25892 xupdate:variable is inserted to often ------- Additional Comments From [EMAIL PROTECTED] 2004-03-26 00:52 ------- I've looked a bit more into this and it seems that it only occurs if you call the XUpdateQueryService.update(String commands) method. This method applies the xupdate commands to the entire collection, even if only one document is affected by the query. if you use the XUpdateQueryService.updateResource(String documentName, String commands) it will apply the xupdate to just the document you have specified. Using xupdate:variable here works flawlessy! This is still a bug though because it should work even if applied to a collection but for those who just need it to work, there is a workaround here. I have verified that this bug affects the cvs head (1.1b4-dev).