Tony Mariella wrote:
[[ please do not respond off-list ]]
> I understand, I'm adding multiple attributes to the
> same element.
> Here's what I want to do: I want to return the value of
> the id attribute and put that value in a new tag.
So you want the *value* of the attribute. The following selects attributes:
.../@id
The following selects their values:
.../data(@id) (: or text(@id) if you want the string value :)
This will return a sequence of several items if the first expression returns
several attributes. So if I make some expectations about your problem:
for $e in .../some-element
return
<id>{ $e/text(@id) }</id>
Regards,
--
Florent Georges
http://www.fgeorges.org/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general