Changes

Jump to navigation Jump to search
1,330 bytes added ,  20:47, 29 January 2011
|- valign="top" scope="row"
|<code>XUDY0009</code>
| In The target node of a replace expression, the target node needs a parent in order to be replaced.
|<code>replace node <target/> with <new/></code>
|- valign="top" scope="row"
|<code>XUDY0014</code>
| The expression updated by the <code>modify</code> clause was not created by the <code>copy</code> clause.
|<code>let $a := doc('a') return copy $b := $a modify delete node $a/* return $b</code>
|- valign="top" scope="row"
|<code>XUDY0015</code>
| In a <code>rename</code> expression, a target is renamed more than once.
|<code>let $a := <xml/> return (rename node $a as 'a', rename node $a as 'b')</code>
|- valign="top" scope="row"
|<code>XUDY0016</code>
| In a <code>replace</code> expression, a target is replaced more than once.
|<code>let $a := <x>x</x>/node() return (replace node $a with <a/>, replace node $a with <b/>)</code>
|- valign="top" scope="row"
|<code>XUDY0017</code>
| In a <code>replace value of</code> expression, a target is replaced more than once.
|<code>let $a := <x/> return (replace value of node $a with 'a', replace value of node $a with 'a')</code>
|- valign="top" scope="row"
|<code>XUDY0021</code>
| The resulting update expression contains duplicate attributes.
|<code>copy $c := <x a='a'/> modify insert node attribute a {""} into $c return $c</code>
|- valign="top" scope="row"
|<code>XUDY0023</code>
| The resulting update expression conflicts with existing namespaces.
|<code>rename node <a:ns xmlns:a='uri'/> as QName('URI', 'a:ns')</code>
|}
Still to be finished…
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu