Yes, there are other XML processors that can do this. Saxon, for example, you can pass it in programmatically, and I believe XSLT can. Xmlsh can. So its not unique to XQuery, but I believe its not possible in pure XPath.
-----Original Message----- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Sokolov Sent: Friday, March 12, 2010 9:14 AM To: 'General Mark Logic Developer Discussion' Subject: [MarkLogic Dev General] RE: [MarkLogicDevGeneral]ProbleminsertingdefaultnamespaceincreatedXMLdocumen tfixed, but validation fails Isn't it true that in other contexts one can also declare a namespace prefix in the processing environment that may not be available in the document itself? For example, in XSLT I think this is possible, as well as in a Java processor that implements XPath. I don't think it's something unique to XQuery, is it? -Mike > -----Original Message----- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Florent Georges > Sent: Friday, March 12, 2010 8:59 AM > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic > DevGeneral]ProbleminsertingdefaultnamespaceincreatedXML > documentfixed, but validation fails > > "Lee, David" wrote: > > Hi David (I didn't pay attention who I was responding to ;-)) > > > The key I re-discovered here is Xquery lets you add that > extra glue to > > define a prefix outside of xpath, and outside of the document. > > Ah I see, yes the declare namespace statement is the key > you were after then. But it never hurts to refresh some > namespace related concepts on such a list ;-) > > Regards, > > -- > Florent Georges > http://www.fgeorges.org/ > > > > > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://xqzone.com/mailman/listinfo/general > _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general