Geert,

Thanks for the advice it helped. My problem was that I was trying to be lazy 
and just not handle namespaces correctly and of course this approach was not 
working. I essentially wanted Marklogic to trust that I would handle the 
namespaces, but it would of course insert the empty namespace into nodes 
returned from modules where no default namespace was declared. 

I have since corrected my approach, declared default namespaces in all my 
modules, defined namespaces properly in my XML where I had not done so, and it 
all works perfectly now. It's a slow process but I am learning :-)
Thanks for your advice and that of others on the list for steering me in the 
right direction.

Cheers,

Adam

> -----Original Message-----
> From: [email protected] [mailto:general-
> [email protected]] On Behalf Of Geert Josten
> Sent: May 27, 2010 12:12 PM
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Empty Namespace and Functions
> 
> Hi Adam,
> 
> Not using default element namespace declarations will likely help..
> 
> Kind regards,
> Geert
> 
> >
> 
> 
> drs. G.P.H. (Geert) Josten
> Consultant
> 
> Daidalos BV
> Hoekeindsehof 1-4
> 2665 JZ Bleiswijk
> 
> T +31 (0)10 850 1200
> F +31 (0)10 850 1199
> 
> mailto:[email protected]
> http://www.daidalos.nl/
> 
> KvK 27164984
> 
> 
> De informatie - verzonden in of met dit e-mailbericht - is afkomstig
> van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien
> u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te
> verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
> 
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of
> > Adam Patterson
> > Sent: donderdag 27 mei 2010 18:09
> > To: [email protected]
> > Subject: [MarkLogic Dev General] Empty Namespace and Functions
> >
> > Hello,
> >
> >
> >
> > A quick question here: When I call a function in one Xquery
> > module from another then the returned node always has the
> > empty namespace (xmlns="") inserted into it. Is there a way
> > to stop this behaviour?
> >
> >
> >
> > Cheers,
> >
> >
> >
> > Adam
> >
> >
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to