W3C home > Mailing lists > Public > www-ql@w3.org > July to September 2005

Renaming an element - getting a value without tags

From: Jule Kleine <listmail@web.de>
Date: Thu, 18 Aug 2005 01:53:08 +0200
Message-Id: <575634987@web.de>
To: www-ql@w3.org


I would like to use xquery to rename an element:


should then be:



My XQuery is:

for $text in doc("sample.xml")/text

let $value := $text/old
let $outputValue := <new>{$value}</new>


What I get is:


Is there any chance to get $value without it's start and endtag ?
As far as I know I cannot get the text of an element with xpath, right ? So is there a way to solve it in xquery ? 
I was experimenting with different forms of {$value} and $value and was searching in all examples I could get but couldnt solve the problem, I hope you know some help....

Thank you

Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179
Received on Wednesday, 17 August 2005 23:53:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:17 UTC