Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Attribute substitution by name

625055Mar 19 2008 — edited Mar 19 2008
In my application, currently running on Berkeley DB XML, an xquery selects all the attributes of an element, substituting one attribute by name. Here is the sample xquery:

for $el in ....
return <aaa MyAttribute="newvalue">{$el/bbb/@*[local-name()!="MyAttribute"]}</aaa>

This works in Berkeley DB XML, but doesn't in Oracle XML DB.
I get the error: SQL Error: ORA-19121: duplicate attribute definition

How can I achieve this in Oracle?

Thank you.

Bye
Mirko
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2008
Added on Mar 19 2008
1 comment
868 views