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>


Ivan Shcheklein wrote:
>  
>
>     3- in a node like <MYNODE><NAME>bob</NAME> ... </MYNODE>
>     i want to transform it in <MYNODE NAME="bob> ... </MYNODE>
>     so :
>     for $a in doc("MYDOC")//MYNODE
>     return ????
>
>
> Try something like this:
>
> UPDATE  
> replace $p in doc("mydoc")/mynode
> with  
> <mynode>  
> { attribute {"name"} {$p/@name}  } 
> </mynode>
>
>
> Ivan Shcheklein,
> Sedna Team
>



-------------------------------------------------------------------------
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