[MarkLogic Dev General] sequence of elements

Mike Sokolov sokolov at ifactory.com
Wed Sep 8 14:39:54 PDT 2010


Personally I liked the marklogic 0.9 technique:

declare namespace none=""

$item/self::none:ID

It seems unfortunate the actual xquery standard couldn't accomodate that 
one.  I recently had to dig through a bunch of code and get rid of the 
default namespace declarations for that reason :(

-Mike

On 09/07/2010 01:10 PM, Florent Georges wrote:
> Danny Sokolsky wrote:
>
>    
>> fn:QName(fn:namespace-uri(.), fn:local-name(.))
>>      
>    For that one, you can use fn:node-name(.) ;-)  Yeah, if the OP does need the default namespace statement, that's probably the best approach actually.
>
>    Regards,
>
>    


More information about the General mailing list