This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: XQuery element names
- From: Per Bothner <per at bothner dot com>
- To: Jim White <jim at pagesmiths dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Tue, 27 Aug 2002 15:04:48 -0700
- Subject: Re: XQuery element names
- References: <3D6BE5AD.9090900@pagesmiths.com>
Jim White wrote:
One is that I can't get node-name, name, element-name or whatever it is
supposed to be called to give me an element name as a string.
My reading of the docs make me think I should be able to do this:
return <element name="{node-name($field)}" ...
But I always get unbound for node-name.
I guess it hasn't been implemented yet, then ...
Should be trivial enough. However, I'm a bit unclear on whether
it shoudl be name or node-name, and if the former whether it returns
a string or a QName ...
Also I'm having no luck specifying xmlns: for anything.
Again, not implemented. However, you can use 'declare namespace' in
the query prolog.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/