From: Debra W. <wil...@st...> - 2012-10-11 21:17:50
|
Hi Joe, That works. Thanks for all your help. Regards, Debra ----- Original Message ----- From: "Joe Wicentowski" <jo...@gm...> To: "Debra Willrett" <wil...@st...> Cc: exi...@li..., "Hakan BULU" <hak...@gm...> Sent: Thursday, October 11, 2012 1:35:23 PM Subject: Re: query database using namespace variable Hi Debra, > Is there a way around putting fm: on each tag? Thanks. You can declare it as the default element namespace: declare default element namespace 'gme://caCORE.caCORE/3.2/edu.northwestern.radiology.AIM'; collection('/db/aim.dbxml/')/ImageAnnotation/user/User[@cagridId='0'] For more info on this see "4.13 Default Namespace Declaration" of the XQuery 1.0 spec at http://www.w3.org/TR/xquery/#id-default-namespace and the XQuery wikibook crib sheet article at http://en.wikibooks.org/wiki/XQuery/eXist_Crib_sheet#declare_a_default_element_namespace. Cheers, Joe |