- From: Howard Katz <howardk@fatdog.com>
- Date: Tue, 7 Sep 2004 14:25:21 -0700
- To: <www-ql@w3.org>
Is there a simple way of taking a namespace declaration such as declare namespace foo="http://foo/"; and a list of local names, such as ( bar, baz, ... ) and generating a list of the corresponding URIs, a la RDF, such as http://foo/bar http://foo/baz ... ? I can see a way of doing this without explicit namespaces, using simple string concatenation and an xs:anyURI constructor: let $namespace := concat( "http://foo/", ":" ) return xs:anyURI( concat( $namespace, "bar" )) but I'm wondering if it can be done using a namespace declaration, since that somehow seems more in keeping with the intent. (I can see a rather convoluted way of doing it using a computed element constructor and fn:namespace-uri(). I'm wondering tho if there's a more direct way of doing it without constructing an element first.) Howard
Received on Tuesday, 7 September 2004 21:24:11 UTC