Standalone properties are indeed a 4.2 feature.

In the 4.1 App Developer's Guide, I do not see any mention of standalone 
properties:

http://developer.marklogic.com/pubs/4.1/books/dev_guide.pdf

It is there in the 4.2 Application Developer's Guide, however:

http://developer.marklogic.com/pubs/4.2/books/dev_guide.pdf

In any case, that will not work in 4.1, but will in 4.2.

-Danny



From: [email protected] 
[mailto:[email protected]] On Behalf Of MaranSuku
Sent: Monday, October 25, 2010 2:28 PM
To: [email protected]
Subject: Re: [MarkLogic Dev General] standalone properties document

I see this in 4.1 also. Last Revised: 4.1-5, February, 2010 dev_guide.pdf.
On Mon, Oct 25, 2010 at 5:04 PM, MaranSuku 
<[email protected]<mailto:[email protected]>> wrote:

I am trying to create a Standalone Properties Document, and used the same 
sample as provided in the dev_guide.pdf.
I see trouble in executing the same,  the error message says that the Document 
Not Found, but per the Guide Standalone properties document
is a properties document at a URI with no coresponding document at that URI .

Can some one help me with this, Am I doing something wrong.

XQuery :

xquery version "1.0-ml";
xdmp:document-set-properties("/my-props.xml", <my-props/>),
xdmp:document-set-permissions("/my-props.xml",
(xdmp:permission("dls-user", "read"),
xdmp:permission("dls-user", "update")))

Error Message:

query evaluated in Documents at file::C:\MarkLogic417\Samples\cq as 1.0-ml (cq 
v4.1-7)

[1.0-ml] XDMP-DOCNOTFOUND: xdmp:document-set-properties("/my-props.xml", 
<my-props/>) -- Document not found

Stack trace:
line 2: 1: xquery version "1.0-ml";
2: xdmp:document-set-properties("/my-props.xml", <my-props/>)
3:


I am on ML 4.1-7 , Windows XP.

--
Thanks,
SukuMaran



--
Thanks,
SukuMaran
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to