I avoided weighing into this because I really found the question very unclear, but since namespaces and QNames are such a thorny area (one that is still being refined in the spec) the use case deserves examination. Could you explain exactly what your input is, what your desired output is, and what information is known statically? Preferably in language that doesn't rely on any knowledge of RDF. Michael Kay > Paul Cotton wrote: > > > This means that the NamespaceDecl cannot contain function calls or > > string concatentation. > > But the question wasn't generating namespaces, but generating URIs. > > It seems to me you should be able to use a cast to a QName: > > declare namespace foo="http://foo/"; > for $name in ("bar", "baz") > let $qname := QName(concat("foo:",$name) return > xs:anyURI( concat(namespace-uri-from-QName($name), > local-name-from-QName($name))) > > or > > declare namespace foo="http://foo/"; > let $foo := namespace-uri-from-QName(QName("foo:unused")) > for $name in ("bar", "baz") > xs:anyURI( concat($foo, $name)) > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ > >Received on Wednesday, 8 September 2004 08:00:19 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:20 GMT