Thank you, Lukas, for your quick response.
Best regards
Isidro
Em 11-04-2011 13:58, Lukas Kircher escreveu:
Hi Isidro,
computed namespace constructors are part of XQuery 3.0 [1] and not yet part of BaseX. I also fear that, at the moment, there is no workaround that enables you to create namespaces dynamically (XQST0022 [2]).
Sorry for not being able to help ...
Kind regards, Lukas
[1] http://www.w3.org/TR/xquery-30/#id-computed-namespaces [2] http://www.w3.org/TR/xquery-30/#id-namespaces
On Mon, Apr 11, 2011 at 2:32 PM, Isidro Vila Verde <jvverde@gmail.com mailto:jvverde@gmail.com> wrote:
Dear all, I am trying to dynamically create an element using computed namespaces constructor and always I got the error [XPST0003] Expecting "}", found "m". I am trying this example let $nsURI := "http://example.org/metric-system", $attrname := "metric:unit", $attrvalue := "meter" return element {"altitude"} { namespace metric {$nsURI}, attribute {$attrname} {$attrvalue}, "10000" } (from http://www.xml.com/pub/a/2003/09/10/xquery.html) My question is is namespaces constructor supported? Thanks in advance Isidro --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 110411-0, 11-04-2011 Tested on: 11-04-2011 13:32:58 avast! - copyright (c) 1988-2011 AVAST Software. http://www.avast.com _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de <mailto:BaseX-Talk@mailman.uni-konstanz.de> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
--- avast! Antivirus: Outbound message clean. Virus Database (VPS): 110411-0, 11-04-2011 Tested on: 11-04-2011 14:15:45 avast! - copyright (c) 1988-2011 AVAST Software. http://www.avast.com