Hi Selven, The actions are called by triggers that belong to the CPF framework. I thought it uses something like an xdmp:eval with specification of the mentioned variables to call the matching actions.
To get a better understanding of what steps your documents go through, I suggest activating CPF trace events. You can find more about that in chapter 8.3 of the CPF guideline: http://developer.marklogic.com/pubs/4.1/books/cpf.pdf HTH, 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 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Selven Xavier > Sent: maandag 12 oktober 2009 8:51 > To: [email protected] > Subject: [MarkLogic Dev General] Clarification on External Variable > > Hi Team, > > Following is the code snippet of > "/MarkLogic/conversion/actions/convert-pdf-action.xqy". We > need to know, from where $cpf:document-uri external variable > is set. Is that variable is set through Java file or another? > > > > > > import module namespace lnk = "http://marklogic.com/cpf/links" > > at "/MarkLogic/cpf/links.xqy" > > import module namespace cpf = "http://marklogic.com/cpf" > > at "/MarkLogic/cpf/cpf.xqy" > > import module namespace cvt ="http://marklogic.com/cpf/convert" > > at "/MarkLogic/conversion/convert.xqy" > > import module namespace pdf ="http://marklogic.com/cpf/pdf" > > at "/MarkLogic/conversion/pdf.xqy" > > default element namespace = "http://www.w3.org/1999/xhtml" > > > > declare namespace > this="/MarkLogic/conversion/actions/convert-pdf-action.xqy" > > declare namespace tidy="xdmp:tidy" > > declare namespace pdf-convert="xdmp:pdf-convert" > > > > default collation="http://marklogic.com/collation/codepoint" > > > > define variable $cpf:document-uri as xs:string external > > define variable $cpf:transition as node() external > > define variable $cpf:options as node() external > > > > Can anyone help us, which file/trigger (i.e. step by step > file call) will get call, when we drag and drop PDF file? > > > > Thanks in Advance, > > > > Regards, > > Selven Xavier .A > > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
