|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Changing the content of an XML documentWolfgang wolfgang at exist-db.orgTue Sep 2 13:10:54 PDT 2008
> The identity transform will work, and is essentially the same as the > transformation function that Wolfgang suggests. However I think a > transform expression is easier to understand if eXist supports XQuery > Update: > > copy $a := $tree > modify replace value of node $a//subnode with > if($condition) then "some text" else "some other text" > return $a Right now, updates are only supported on documents stored in the db (we directly modify the persistent dom). To use this approach, the document fragment would need to be saved first, which is probably too much overhead for a one-time use. Wolfgang
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






