From leo.studer at varioweb.ch Tue May 31 09:20:24 2016 From: leo.studer at varioweb.ch (Leo Studer) Date: Tue, 31 May 2016 18:20:24 +0200 Subject: [xquery-talk] xpath default namespace Message-ID: <264000A6-1899-425B-9366-039592CE7295@varioweb.ch> Hello is there a way to declare a default namespace for xPath in xQuery 3.0 as in Schema or in XSLT? Thanks in advance Leo From g at 28.io Tue May 31 09:24:05 2016 From: g at 28.io (Ghislain Fourny) Date: Tue, 31 May 2016 18:24:05 +0200 Subject: [xquery-talk] xpath default namespace In-Reply-To: <264000A6-1899-425B-9366-039592CE7295@varioweb.ch> References: <264000A6-1899-425B-9366-039592CE7295@varioweb.ch> Message-ID: Hi Leo, In XQuery, you can do this in the prolog like so (this is from the spec): declare default element namespace "http://example.org/names"; You can also do so using xmlns attribute in node constructors, and the default namespace will be in scope in all nested expressions. Kind regards, Ghislain On Tue, May 31, 2016 at 6:20 PM, Leo Studer wrote: > > Hello > > is there a way to declare a default namespace for xPath in xQuery 3.0 as in Schema or in XSLT? > > Thanks in advance > Leo > > > > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: