Take that back, its a pain but try this: Its not *exactly* what you want but sometimes works. *:name resolves to all namespaces including the empty one.
xquery version "1.0-ml"; declare default element namespace "http://www.w3.org/1999/xhtml"; let $x := <body><mine xmlns="">No NS></mine><p>hello world</p></body> return $x//*:mine ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee Sent: Thursday, October 25, 2012 1:17 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Declare default element namespace Not to my knowledge.. I opened a W3C XQuery feature request for this a while back ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of William Merritt Sawyer Sent: Thursday, October 25, 2012 1:10 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Declare default element namespace If you set the default element namespace with "declare default element namespace 'some-url'; " is there a way still xpath against the empty namespace? Thanks, - Will
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general