Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
Is it advisable/desirable to turn on Point-in-time queries in a production
environment ?

Regards,
Danny


On Fri, Sep 14, 2012 at 5:02 PM, Danny Sinang  wrote:

> Please disregard. Found the answer ...
>
> When this parameter is set to 0 (the default) and merges are enabled,
> point-in-time queries are effectively disabled.
>
> On Fri, Sep 14, 2012 at 4:49 PM, Danny Sinang  wrote:
>
>> So what does "merge timestamp" = 0 mean ? Keep as much obsolete data
>> until the next merge ?
>>
>> Regards,
>> Danny
>>
>> On Fri, Sep 14, 2012 at 4:28 PM, Michael Blakeley wrote:
>>
>>>
>>> http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/dev_guide/point_in_time.xml
>>>
>>> -- Mike
>>>
>>> On 14 Sep 2012, at 12:46 , Danny Sinang wrote:
>>>
>>> > Hi,
>>> >
>>> > How does Marklogic delete documents ? Logically or Physically ?
>>> >
>>> > If logically, how do I view these logically deleted documents ?
>>> >
>>> > Regards,
>>> > Danny
>>> >
>>> >
>>> > ___
>>> > General mailing list
>>> > General@developer.marklogic.com
>>> > http://developer.marklogic.com/mailman/listinfo/general
>>>
>>> ___
>>> General mailing list
>>> General@developer.marklogic.com
>>> http://developer.marklogic.com/mailman/listinfo/general
>>>
>>
>>
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
Please disregard. Found the answer ...

When this parameter is set to 0 (the default) and merges are enabled,
point-in-time queries are effectively disabled.

On Fri, Sep 14, 2012 at 4:49 PM, Danny Sinang  wrote:

> So what does "merge timestamp" = 0 mean ? Keep as much obsolete data until
> the next merge ?
>
> Regards,
> Danny
>
> On Fri, Sep 14, 2012 at 4:28 PM, Michael Blakeley wrote:
>
>>
>> http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/dev_guide/point_in_time.xml
>>
>> -- Mike
>>
>> On 14 Sep 2012, at 12:46 , Danny Sinang wrote:
>>
>> > Hi,
>> >
>> > How does Marklogic delete documents ? Logically or Physically ?
>> >
>> > If logically, how do I view these logically deleted documents ?
>> >
>> > Regards,
>> > Danny
>> >
>> >
>> > ___
>> > General mailing list
>> > General@developer.marklogic.com
>> > http://developer.marklogic.com/mailman/listinfo/general
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
So what does "merge timestamp" = 0 mean ? Keep as much obsolete data until
the next merge ?

Regards,
Danny

On Fri, Sep 14, 2012 at 4:28 PM, Michael Blakeley  wrote:

>
> http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/dev_guide/point_in_time.xml
>
> -- Mike
>
> On 14 Sep 2012, at 12:46 , Danny Sinang wrote:
>
> > Hi,
> >
> > How does Marklogic delete documents ? Logically or Physically ?
> >
> > If logically, how do I view these logically deleted documents ?
> >
> > Regards,
> > Danny
> >
> >
> > ___
> > General mailing list
> > General@developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Michael Blakeley
http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/dev_guide/point_in_time.xml

-- Mike

On 14 Sep 2012, at 12:46 , Danny Sinang wrote:

> Hi,
> 
> How does Marklogic delete documents ? Logically or Physically ?
> 
> If logically, how do I view these logically deleted documents ?
> 
> Regards,
> Danny
> 
> 
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
Hi,

How does Marklogic delete documents ? Logically or Physically ?

If logically, how do I view these logically deleted documents ?

Regards,
Danny
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Keith L. Breinholt
You could use the browser based debugger XQDebug:  
http://code.google.com/p/xqdebug/

XQDebug allows you to debug websites and webservices built on MarkLogic.  If 
you want to debug directly from an editor user Oxygen or from qconsole use XQDT.

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, September 14, 2012 11:58 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

There is also XQDT, which runs in Eclipse..

Kind regards,
Geert

Van: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 Namens Gary Larsen
Verzonden: vrijdag 14 september 2012 19:30
Aan: 'MarkLogic Developer Discussion'
Onderwerp: Re: [MarkLogic Dev General] ctx and xdmp declaration

Thanks for everyone's help.  Still stuck with the Oxygen debugger but need to 
move on and try to resolve later.

Are there any other XQuery debuggers that people are using with ML?

Thanks,
Gary


From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Tim Meagher
Sent: Friday, September 14, 2012 11:16 AM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

Hi Gary,
Have you set up a MarkLogic DataSource in oXygen using the xcc .jar file for 
your particular version of MarkLogic and run your query in the context of a 
connection to that datasource?

Tim Meagher
From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Gary Larsen
Sent: Friday, September 14, 2012 9:09 AM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

Thanks Ryan.  That worked but now I've run into a function signature issue.

In the xdmp:unquote() call below I get this syntax error in Oxygen's debugger:

> Cannot find a matching 2-argument function named 
> {http://marklogic.com/xdmp}unquote()

declare function console-data:param($name, $val) {
let $p := 
xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p:params/*[local-name()=$name]/p:val
 return
if(fn:count($p) gt 1 or $p ne '') then $p
else $val
};

The query runs when the xquery version is "1.0.-ml" but the debugger requires 
"1.0".

Is there a solution or alternative anyone can suggest?

Thanks,
Gary

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Ryan Dew
Sent: Thursday, September 13, 2012 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

declare namespace xdmp = "http://marklogic.com/xdmp";;
declare namespace cts = "http://marklogic.com/cts";;

The namespaces could be found with running the following in QConsole:

xquery version "1.0-ml";

fn:namespace-uri-from-QName(xs:QName('xdmp:test')),
fn:namespace-uri-from-QName(xs:QName('cts:test'))


-Ryan Dew

On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen 
mailto:gary.lar...@envisn.com>> wrote:
Hi,

Trying to debug a query in Oxygen but have syntax errors:

XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp has 
not been declared
XQuery syntax error in #... cts:element-value-query#: Prefix cts has not 
been declared
What are the proper namespace declarations for these prefixes?

Thanks,
Gary


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Geert Josten
There is also XQDT, which runs in Eclipse..



Kind regards,

Geert



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *Gary Larsen
*Verzonden:* vrijdag 14 september 2012 19:30
*Aan:* 'MarkLogic Developer Discussion'
*Onderwerp:* Re: [MarkLogic Dev General] ctx and xdmp declaration



Thanks for everyone’s help.  Still stuck with the Oxygen debugger but need
to move on and try to resolve later.



Are there any other XQuery debuggers that people are using with ML?



Thanks,

Gary





*From:* general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] *On Behalf Of *Tim Meagher
*Sent:* Friday, September 14, 2012 11:16 AM
*To:* 'MarkLogic Developer Discussion'
*Subject:* Re: [MarkLogic Dev General] ctx and xdmp declaration



Hi Gary,

Have you set up a MarkLogic DataSource in oXygen using the xcc .jar file
for your particular version of MarkLogic and run your query in the context
of a connection to that datasource?



Tim Meagher

*From:* general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] *On Behalf Of *Gary Larsen
*Sent:* Friday, September 14, 2012 9:09 AM
*To:* 'MarkLogic Developer Discussion'
*Subject:* Re: [MarkLogic Dev General] ctx and xdmp declaration



Thanks Ryan.  That worked but now I’ve run into a function signature issue.



In the xdmp:unquote() call below I get this syntax error in Oxygen’s
debugger:



> Cannot find a matching 2-argument function named {
http://marklogic.com/xdmp}unquote()



declare function console-data:param($name, $val) {
let $p := xdmp:unquote($params,'
http://developer.envisn.com/xmlns/envisn/netvisn/p')/p:params/*[local-name()
=$name]/p:val return
if(fn:count($p) gt 1 or $p ne '') then $p
else $val
};



The query runs when the xquery version is “1.0.-ml” but the debugger
requires “1.0”.



Is there a solution or alternative anyone can suggest?



Thanks,

Gary



*From:* general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] *On Behalf Of *Ryan Dew
*Sent:* Thursday, September 13, 2012 5:23 PM
*To:* MarkLogic Developer Discussion
*Subject:* Re: [MarkLogic Dev General] ctx and xdmp declaration



declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;



The namespaces could be found with running the following in QConsole:



xquery version "1.0-ml";



fn:namespace-uri-from-QName(xs:QName('xdmp:test')),

fn:namespace-uri-from-QName(xs:QName('cts:test'))





-Ryan Dew



On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:

Hi,



Trying to debug a query in Oxygen but have syntax errors:



XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp
has not been declared

XQuery syntax error in #... cts:element-value-query#: Prefix cts has
not been declared

What are the proper namespace declarations for these prefixes?



Thanks,

Gary




___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Gary Larsen
Thanks for everyone's help.  Still stuck with the Oxygen debugger but need
to move on and try to resolve later.

 

Are there any other XQuery debuggers that people are using with ML?

 

Thanks,

Gary

 

 

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Tim Meagher
Sent: Friday, September 14, 2012 11:16 AM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

 

Hi Gary,

Have you set up a MarkLogic DataSource in oXygen using the xcc .jar file for
your particular version of MarkLogic and run your query in the context of a
connection to that datasource?

 

Tim Meagher

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary Larsen
Sent: Friday, September 14, 2012 9:09 AM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

 

Thanks Ryan.  That worked but now I've run into a function signature issue. 

 

In the xdmp:unquote() call below I get this syntax error in Oxygen's
debugger:

 

> Cannot find a matching 2-argument function named
{http://marklogic.com/xdmp}unquote()

 

declare function console-data:param($name, $val) {
let $p :=
xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p
:params/*[local-name()=$name]/p:val return
if(fn:count($p) gt 1 or $p ne '') then $p
else $val
};

 

The query runs when the xquery version is "1.0.-ml" but the debugger
requires "1.0". 

 

Is there a solution or alternative anyone can suggest?

 

Thanks,

Gary

 

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ryan Dew
Sent: Thursday, September 13, 2012 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

 

declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;

 

The namespaces could be found with running the following in QConsole:

 

xquery version "1.0-ml";

 

fn:namespace-uri-from-QName(xs:QName('xdmp:test')),

fn:namespace-uri-from-QName(xs:QName('cts:test'))

 

 

-Ryan Dew

 

On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:

Hi,

 

Trying to debug a query in Oxygen but have syntax errors:

 

XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp
has not been declared

XQuery syntax error in #... cts:element-value-query#: Prefix cts has not
been declared

What are the proper namespace declarations for these prefixes?

 

Thanks,

Gary

 


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Michael Blakeley
Not as far as I know.

As I understand it, the concern here is security. Any filesystem delete (or 
move) would be protected by an exec privilege and would be restricted by 
filesystem permissions. But it's even more secure to omit the functionality 
completely. The same logic applies to any kind of direct process control.

Of course, xdmp:save is almost as dangerous. If the filesystem permissions 
allow, you can overwrite any file on the filesystem

-- Mike

On 14 Sep 2012, at 07:54 , Keith L. Breinholt wrote:

> Unfortunately a move is effectively a copy and delete operation, so that is 
> not likely to occur until a delete option is available.  
> 
> Rename is OS specific but within a directory should be doable, but I am not 
> aware of any such operation.  
> 
> Are you aware of a rename operation Michael?
> 
> -Original Message-
> From: Florent Georges [mailto:li...@fgeorges.org] 
> Sent: Friday, September 14, 2012 8:35 AM
> To: Keith L. Breinholt; MarkLogic Developer Discussion; Michael Blakeley
> Subject: Re: [MarkLogic Dev General] Inserting in a file system module 
> database
> 
> Keith L. Breinholt wrote:
> 
>   Hi,
> 
>> Unfortunately there is no XQuery functionality to remove a file system 
>> directory or a file.
> 
>   Thanks.  In my case, I guess the best option is to handle the rest of the 
> processing (removing the files from the management meta information) and ask 
> the user to delete them manually, by providing the paths.
> 
>   If it was possible to move, or at least rename the files and directories to 
> delete, it would make user's life easier...
> 
>   Regards,
> 
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
> 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Tim Meagher
Hi Gary,



Have you set up a MarkLogic DataSource in oXygen using the xcc .jar file for
your particular version of MarkLogic and run your query in the context of a
connection to that datasource?

 

Tim Meagher

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary Larsen
Sent: Friday, September 14, 2012 9:09 AM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

 

Thanks Ryan.  That worked but now I've run into a function signature issue. 

 

In the xdmp:unquote() call below I get this syntax error in Oxygen's
debugger:

 

> Cannot find a matching 2-argument function named
{http://marklogic.com/xdmp}unquote()

 

declare function console-data:param($name, $val) {
let $p :=
xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p
:params/*[local-name()=$name]/p:val return
if(fn:count($p) gt 1 or $p ne '') then $p
else $val
};

 

The query runs when the xquery version is "1.0.-ml" but the debugger
requires "1.0". 

 

Is there a solution or alternative anyone can suggest?

 

Thanks,

Gary

 

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ryan Dew
Sent: Thursday, September 13, 2012 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

 

declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;

 

The namespaces could be found with running the following in QConsole:

 

xquery version "1.0-ml";

 

fn:namespace-uri-from-QName(xs:QName('xdmp:test')),

fn:namespace-uri-from-QName(xs:QName('cts:test'))

 

 

-Ryan Dew

 

On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:

Hi,

 

Trying to debug a query in Oxygen but have syntax errors:

 

XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp
has not been declared

XQuery syntax error in #... cts:element-value-query#: Prefix cts has not
been declared

What are the proper namespace declarations for these prefixes?

 

Thanks,

Gary

 


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Keith L. Breinholt
Unfortunately a move is effectively a copy and delete operation, so that is not 
likely to occur until a delete option is available.  

Rename is OS specific but within a directory should be doable, but I am not 
aware of any such operation.  

Are you aware of a rename operation Michael?

-Original Message-
From: Florent Georges [mailto:li...@fgeorges.org] 
Sent: Friday, September 14, 2012 8:35 AM
To: Keith L. Breinholt; MarkLogic Developer Discussion; Michael Blakeley
Subject: Re: [MarkLogic Dev General] Inserting in a file system module database

Keith L. Breinholt wrote:

  Hi,

> Unfortunately there is no XQuery functionality to remove a file system 
> directory or a file.

  Thanks.  In my case, I guess the best option is to handle the rest of the 
processing (removing the files from the management meta information) and ask 
the user to delete them manually, by providing the paths.

  If it was possible to move, or at least rename the files and directories to 
delete, it would make user's life easier...

  Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Geert Josten
Hi,



Yes, what Ryan describes should be possible. You have to declare xdmp
namespaces and alike explicitly, and you won’t be able to use for instance
try catch, but the code below should work.



Kind regards,

Geert



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *Ryan Dew
*Verzonden:* vrijdag 14 september 2012 16:29
*Aan:* MarkLogic Developer Discussion
*Onderwerp:* Re: [MarkLogic Dev General] ctx and xdmp declaration



The "1.0" version of the query doesn't run or the debugger is indicating an
issue? If the query is not executing than it may be a bug in the version of
ML you are using. In ML version 5.0-3.3 I'm able to run the following in
qconsole just fine:



xquery version "1.0";



declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;



xdmp:unquote('','http://developer.envisn.com/xmlns/envisn/netvisn/p')



If the issue you are having is with the debugger, I don't know how to help
you there, unfortunately.



-Ryan Dew





On Sep 14, 2012, at 7:08 AM, "Gary Larsen"  wrote:



Thanks Ryan.  That worked but now I’ve run into a function signature issue.



In the xdmp:unquote() call below I get this syntax error in Oxygen’s
debugger:



> Cannot find a matching 2-argument function named {
http://marklogic.com/xdmp}unquote()



declare function console-data:param($name, $val) {
let $p :=xdmp:unquote($params,'
http://developer.envisn.com/xmlns/envisn/netvisn/p')/p:params/*[local-name()
=$name]/p:val return
if(fn:count($p) gt 1 or $p ne '') then $p
else $val
};




The query runs when the xquery version is “1.0.-ml” but the debugger
requires “1.0”.



Is there a solution or alternative anyone can suggest?



Thanks,

Gary



*From:* general-boun...@developer.marklogic.com [mailto:general-
boun...@developer.marklogic.com] *On Behalf Of *Ryan Dew
*Sent:* Thursday, September 13, 2012 5:23 PM
*To:* MarkLogic Developer Discussion
*Subject:* Re: [MarkLogic Dev General] ctx and xdmp declaration



declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;



The namespaces could be found with running the following in QConsole:



xquery version "1.0-ml";



fn:namespace-uri-from-QName(xs:QName('xdmp:test')),

fn:namespace-uri-from-QName(xs:QName('cts:test'))





-Ryan Dew



On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:

Hi,



Trying to debug a query in Oxygen but have syntax errors:



XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp
has not been declared

XQuery syntax error in #... cts:element-value-query#: Prefix cts has
not been declared

What are the proper namespace declarations for these prefixes?



Thanks,

Gary




___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general



___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Florent Georges
Keith L. Breinholt wrote:

  Hi,

> Unfortunately there is no XQuery functionality to remove a file
> system directory or a file.

  Thanks.  In my case, I guess the best option is to handle the
rest of the processing (removing the files from the management
meta information) and ask the user to delete them manually, by
providing the paths.

  If it was possible to move, or at least rename the files and
directories to delete, it would make user's life easier...

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Ryan Dew
The "1.0" version of the query doesn't run or the debugger is indicating an 
issue? If the query is not executing than it may be a bug in the version of ML 
you are using. In ML version 5.0-3.3 I'm able to run the following in qconsole 
just fine:

xquery version "1.0";

declare namespace xdmp = "http://marklogic.com/xdmp";;
declare namespace cts = "http://marklogic.com/cts";;

xdmp:unquote('','http://developer.envisn.com/xmlns/envisn/netvisn/p')

If the issue you are having is with the debugger, I don't know how to help you 
there, unfortunately.

-Ryan Dew


On Sep 14, 2012, at 7:08 AM, "Gary Larsen"  wrote:

> Thanks Ryan.  That worked but now I’ve run into a function signature issue.
>  
> In the xdmp:unquote() call below I get this syntax error in Oxygen’s debugger:
>  
> > Cannot find a matching 2-argument function named 
> > {http://marklogic.com/xdmp}unquote()
>  
> declare function console-data:param($name, $val) {
> let $p 
> :=xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p:params/*[local-name()=$name]/p:val
>  return
> if(fn:count($p) gt 1 or $p ne '') then $p
> else $val
> };
> 
>  
> The query runs when the xquery version is “1.0.-ml” but the debugger requires 
> “1.0”.
>  
> Is there a solution or alternative anyone can suggest?
>  
> Thanks,
> Gary
>  
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Ryan Dew
> Sent: Thursday, September 13, 2012 5:23 PM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration
>  
> declare namespace xdmp = "http://marklogic.com/xdmp";;
> declare namespace cts = "http://marklogic.com/cts";;
>  
> The namespaces could be found with running the following in QConsole:
>  
> xquery version "1.0-ml";
>  
> fn:namespace-uri-from-QName(xs:QName('xdmp:test')),
> fn:namespace-uri-from-QName(xs:QName('cts:test'))
>  
>  
> -Ryan Dew
>  
> On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:
> Hi,
>  
> Trying to debug a query in Oxygen but have syntax errors:
>  
> XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp 
> has not been declared
> XQuery syntax error in #... cts:element-value-query#: Prefix cts has not 
> been declared
> 
> What are the proper namespace declarations for these prefixes?
>  
> Thanks,
> Gary
>  
> 
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> 
>  
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Keith L. Breinholt
Unfortunately there is no XQuery functionality to remove a file system 
directory or a file.  

Currently best practice is to zero out the file by writing a zero length file 
and using an external process to delete empty files and folders older than a 
couple hours or a day.

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges
Sent: Friday, September 14, 2012 7:44 AM
To: Florent Georges; Michael Blakeley; MarkLogic Developer Discussion; 
MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Inserting in a file system module database

Florent Georges wrote:
> Michael Blakeley wrote:

  Hi,

>> There is no documented API function for directory creation.
>> But http://marklogic.markmail.org/thread/t657yhz5oryvzrj6
>> includes mention of an undocumented, unsupported function.

>   Excellent, thanks for the tip!  I don't like to use  undocumented 
>features, but it is good enough for me for this  project.

  Of course, now, I've reached the point where I'd like to be able to remove 
what I've actually created.  Is there any way to remove a directory on the file 
system from XQuery in MarkLogic?

  Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] remove delete fragments

2012-09-14 Thread Paul M
;
> Thanks,
>
> Gary
>
> ** **
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20120913/e71c5e5b/attachment-0001.html
 

--

Message: 5
Date: Fri, 14 Sep 2012 09:08:31 -0400
From: "Gary Larsen" 
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration
To: "'MarkLogic Developer Discussion'"
    
Message-ID: <02dd01cd927a$0ae9c3d0$20bd4b70$@envisn.com>
Content-Type: text/plain; charset="us-ascii"

Thanks Ryan.  That worked but now I've run into a function signature issue. 



In the xdmp:unquote() call below I get this syntax error in Oxygen's
debugger:



> Cannot find a matching 2-argument function named
{http://marklogic.com/xdmp}unquote()



declare function console-data:param($name, $val) {
    let $p :=
xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p
:params/*[local-name()=$name]/p:val return
        if(fn:count($p) gt 1 or $p ne '') then $p
        else $val
};





The query runs when the xquery version is "1.0.-ml" but the debugger
requires "1.0". 



Is there a solution or alternative anyone can suggest?



Thanks,

Gary



From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ryan Dew
Sent: Thursday, September 13, 2012 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration



declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;



The namespaces could be found with running the following in QConsole:



xquery version "1.0-ml";



fn:namespace-uri-from-QName(xs:QName('xdmp:test')),

fn:namespace-uri-from-QName(xs:QName('cts:test'))





-Ryan Dew



On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:

Hi,



Trying to debug a query in Oxygen but have syntax errors:



XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#:     Prefix xdmp
has not been declared

XQuery syntax error in #... cts:element-value-query#:     Prefix cts has not
been declared

What are the proper namespace declarations for these prefixes?



Thanks,

Gary




___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general



-- next part --
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20120914/0ad8a91f/attachment.html
 

--

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 99, Issue 21
***___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Florent Georges
Florent Georges wrote:
> Michael Blakeley wrote:

  Hi,

>> There is no documented API function for directory creation.
>> But http://marklogic.markmail.org/thread/t657yhz5oryvzrj6
>> includes mention of an undocumented, unsupported function.

>   Excellent, thanks for the tip!  I don't like to use
> undocumented features, but it is good enough for me for this
> project.

  Of course, now, I've reached the point where I'd like to be
able to remove what I've actually created.  Is there any way to
remove a directory on the file system from XQuery in MarkLogic?

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Gary Larsen
Thanks Ryan.  That worked but now I've run into a function signature issue. 

 

In the xdmp:unquote() call below I get this syntax error in Oxygen's
debugger:

 

> Cannot find a matching 2-argument function named
{http://marklogic.com/xdmp}unquote()

 

declare function console-data:param($name, $val) {
let $p :=
xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p
:params/*[local-name()=$name]/p:val return
if(fn:count($p) gt 1 or $p ne '') then $p
else $val
};



 

The query runs when the xquery version is "1.0.-ml" but the debugger
requires "1.0". 

 

Is there a solution or alternative anyone can suggest?

 

Thanks,

Gary

 

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ryan Dew
Sent: Thursday, September 13, 2012 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration

 

declare namespace xdmp = "http://marklogic.com/xdmp";;

declare namespace cts = "http://marklogic.com/cts";;

 

The namespaces could be found with running the following in QConsole:

 

xquery version "1.0-ml";

 

fn:namespace-uri-from-QName(xs:QName('xdmp:test')),

fn:namespace-uri-from-QName(xs:QName('cts:test'))

 

 

-Ryan Dew

 

On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen  wrote:

Hi,

 

Trying to debug a query in Oxygen but have syntax errors:

 

XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp
has not been declared

XQuery syntax error in #... cts:element-value-query#: Prefix cts has not
been declared

What are the proper namespace declarations for these prefixes?

 

Thanks,

Gary

 


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general