RE: [MarkLogic Dev General]Probleminsertingdefaultnamespaceincreated XML document fixed, but validation fails

2010-03-11 Thread Lee, David
wow thanks ! I didnt know you could do that. Declare a prefix for a namespace to query a non-prefixed document without changing the document. I had to try it to prove to myself it worked. Does. extra cool. From: general-boun...@developer.marklogic.com [mailto:general-boun...@de

RE: [MarkLogic Dev General] Probleminsertingdefaultnamespaceincreated XML document fixed, but validation fails

2010-03-11 Thread Keith L. Breinholt
You can declare a prefix for a namespace and use it in XQuery or XPath like this: declare namespace mystuff = "http://mystuff.com/schema";; $record//mystuff:list Try it out. Keith L. Breinholt breinhol...@ldschurch.org From: general-boun...@developer.marklogi

RE: [MarkLogic Dev General] Probleminsertingdefaultnamespaceincreated XML document fixed, but validation fails

2010-03-11 Thread Lee, David
This is a problem with xpath more then xquery really ... xpath doesn't work so great with non-prefixed namespaces. In any case the solution is return $record//*:list Note that this will match ANY namespace list element, which in your case is fine, but in the general case is

RE: [MarkLogic Dev General] Problem insertingdefaultnamespaceincreated XML document fixed, but validation fails

2010-03-11 Thread Tim Meagher
Hi Geert, et al, I'm still having a little problem. I can construct the new document node so that the default namespace is appropriately applied to the root element, e.g. For example, the contents of the newly created $record variable include the following: http://mystuff.com/schema";>

RE: [MarkLogic Dev General] Does overwriting a document clear anypre-existing collections?

2010-03-11 Thread Tim Meagher
Thank you! Tim _ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Thursday, March 11, 2010 1:26 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Does overwriting a doc

RE: [MarkLogic Dev General] Does overwriting a document clear any pre-existing collections?

2010-03-11 Thread Danny Sokolsky
Yes, that is correct. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Tim Meagher Sent: Thursday, March 11, 2010 9:59 AM To: 'General Mark Logic Developer Discussion' Subject: [MarkLogic Dev General] Does overwriting a document c

[MarkLogic Dev General] Does overwriting a document clear any pre-existing collections?

2010-03-11 Thread Tim Meagher
Hi Folks, I am adding the document two one or more collections when loading a document using either xdmp:document-load() or xdmp:document-insert(). Subsequently I may have cause to reload/insert the document and to use a different set of collections, so I want to be sure that the associatio

RE: [MarkLogic Dev General] RE: logout from IE

2010-03-11 Thread Geert Josten
Hi all, You could change the realm using sec:set-realm, but that will effectively logout everyone. You can also tell IE to rechallenge the user by sending a 401 with a WWW-Authenticate header, but the tricky thing is to recognize when to stop doing that. The following code seems to work more or