well
i tried your sequence and it shutdown sedna : )
*Warning*: SEDNA Message: ERROR SE3007 Failed to recieve a message. 
Details: Connection was broken while executing statement

i have a large doc("VILLES") structured like this
<A>
    <B>
       <VILLE>
             <NOM> Paris</NOM>
             <CP>75000</CP>
       </VILLE>
    </B>
<A>

but i want it to be

<A>
    <B>
       <VILLE label="Paris">
             <CP>75000</CP>
       </VILLE>
    </B>
<A>

so, from your sequence, i done :

UPDATE 
 replace $p in doc("VILLES")//VILLE
 with 
<VILLE> 
{ attribute {"label"} {$p/@NOM}  }
</VILLE>





Ivan Shcheklein wrote:
> On Wed, Oct 8, 2008 at 6:30 PM, dahu <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     it's in the other way :) : node become a new attribute of the parent
>
>     <A>
>     <B>123</B>
>     <C>456</C>
>     </A>
>
>     Become
>
>     <A AttName="123">
>     <C>456</C>
>     </A>
>
>
> Sorry, but it seems to me that I don't exactly understand what do you 
> want. :)
> Do you have problems wth "UPDATE replace" I sent you before?
>  
>




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to