[xquery-talk] separating attribute name from its value
fatma helmy
fatmahelmy2000 at yahoo.com
Thu Mar 2 20:19:21 PST 2006
suppose i have the following xquery
let $j := <book>
<author firstname='joe' lastname='carlon'>
<author>
</book>
for $attr in $j//@*
return
<attribute>
{$attr}
</attribute>
i will get
all attribute names with their values
i want to get attribue name in a node and its value in
another node
example of the output i need is
<attr_name>
firstname
<attrvalue>
joe
</attrvalue>
</attr_name>
<attr_name>
<attr_name>
lastname
<attrvalue>
carlon
</attrvalue>
</attr_name>
<attr_name>
i need to separate the attribute name from its value
in the output
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the talk
mailing list