Hi Keith,
I believe it is evaluated, even when tracing is turned off. XQuery dictates
that fn:trace returns the first parameter, so it has to evaluate it. A quick
look at the profile output in cq seems to support that it is evaluated:
xquery version "1.0-ml";
fn:trace(fn:concat("hello", " the
Duh - it is the details that get you |-)! I have it working now, just
need to get Word to launch. In case someone else finds it useful, here
is the function:
declare function custom:callWord() as item()* {
for $i in ($config:DETAIL/descendant::*:wordDocument)
let $searchresults := ($i)
let $fil
Are parameters to fn:trace() evaluated when tracing is turned off? (i.e. Does
the MarkLogic XQuery engine do lazy evaluation of parameters?)
If not, are there user level functions to determine if event tracing is active
and if a trace event exists in the current system? There are admin functio
Hi Geert,
yes, i have XML files in my marklogic database. it involves the
conversion of proprietary XML to WordML and saving it as a word document
in end-user system. Kindly provide me a necessary solution to archive
this
Regards,
Mohanraj
Laserwords Pvt Ltd.
Betty, have you set a default function namespace in your custom
module? If so, you'll need to use fn: doc(). (The fn namespace is
predefined for you in the server.)
On Sep 17, 2009, at 8:19 AM, "Betty Harvey" wrote:
> I have tried both of functions below and both come back with an error:
>
I have tried both of functions below and both come back with an error:
XDMP-UNDFUN: (err:XPST0017) Undefined function doc()
I am trying to customize the application from the application builder:
Example 1:
declare function custom:callWord() as node()+ {
let $searchresults := cts:search(doc(), "
Hi Mohanraj,
Can you elaborate a bit more? What kind of content is in the database, and does
it involve conversion from proprietary XML to WordML or something else?
Kind regards,
Geert
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
Hi Betty,
You can apply fn:base-uri on any node returned by cts:search (or similar
function), something like:
let $searchresults := cts:search(doc(), "my search string")
where $searchresults
return
doc(base-uri($searchresult[1]))
Kind regards,
Geert
> -Original Message-
> From:
Hi All,
Can anyone tell how to create a Microsoft Office Word 2003 document
using X-Query and Marklogic API???
Regards,
Mohanraj
Laserwords Private Limited.
___
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/g
Maybe I asked the wrong question. I was focusing on a Word document but
it is really broader.
When a search is executed, how can you capture the name and path of the
document from the search results to send it to the XQuery? The answer to
this question will help in another respect to send a docum
Hi Vidya,
> I saw your reply for the & problem I raised in MarklogicDevGeneral.
> Thankyou for the response.
>
> Can u please tell me how can I reply to it..
> Because I am a new user of this .
Just press reply, it should automatically reply to
gene...@developer.marklogic.com.
> I have tried re
Hi Betty,
Documents inserted with something like xdmp:document-insert("/mydoc", $docnode)
(directly with Xquery, or indirectly using WEBDAV, XCC or something like
recordloader), can be extracted with very limited Xquery code:
doc("/mydoc")
Does that help?
Kind regards,
Geert
> -Original
I just want to get the WordML out as a single XML document. Microsoft
Word processing instruction ()
is kept intact on importation so presumably when the document is exported
the Microsoft Word should automatically be invoked.
TIA!
Betty
> Hi Betty,
>
> Can you elaborate what you mean with 'extr
Hi Vidya,
Just write & instead of &, the Xquery parser will collapse it to the &
character in memory.
Kind regards,
Geert
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 85
Please find the below query:
let $tmp := "&c"
let $qury := fn:concat( "cts:search(doc(",
,"abc.xml",,")/a/b,",,$tmp,,")" )
return xdmp:eval($qury)
where "abc.xml" is :
xdmp:document-insert("a
Hi Betty,
Can you elaborate what you mean with 'extract WordML from MarkLogic'. You can
put documents in and get them out as they are easily. But if you mean
converting from XML to WordML, that takes more effort.
You might be interested in this thread as well:
http://markmail.org/thread/uclsaz
16 matches
Mail list logo