BaseXdb/basex — pull request #596 by LukasK (2012-11-20 16:02:52+00:00)
Title: [FIX] XQUF: duplicate attributes as a result from deletes,inserts,replaces ...

Fixes this:
```xquery
copy $c :=
modify (
delete node $c/@a,
for $i in 1 to 2
return insert node attribute a { 'b' } into $c
)
return $c
```

now returns ...
```xml
[XUDY0021] Duplicate attribute a.
```

... and also fixes this:
```xquery
copy $c :=
modify (
delete node $c/@a,
insert node attribute a { 'b' } into $c,
replace node $c/@a with attribute a { 'b' }
)
return $c
```

which now returns:
```xml
[XUDY0021] Duplicate attribute a.
```