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: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Betty Harvey
> Sent: donderdag 17 september 2009 15:40
> To: General Mark Logic Developer Discussion
> Subject: RE: [MarkLogic Dev General] Extracting Microsoft 
> WordML from MarkLogic as .doc
> 
> 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 document to Cocoon for rendering.
> 
> Thanks!
> 
> Betty
> 
> > 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 Message-----
> >> From: [email protected]
> >> [mailto:[email protected]] On Behalf 
> Of Betty 
> >> Harvey
> >> Sent: donderdag 17 september 2009 13:54
> >> To: General Mark Logic Developer Discussion
> >> Subject: RE: [MarkLogic Dev General] Extracting Microsoft 
> WordML from 
> >> MarkLogic as .doc
> >>
> >> I just want to get the WordML out as a single XML document.
> >> Microsoft Word processing instruction (<?mso-application
> >> progid="Word.Document"?>) 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 '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/uclsazcqbyyy32vz
> >> >
> >> > 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 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 Betty
> >> >> Harvey
> >> >> Sent: woensdag 16 september 2009 22:55
> >> >> To: [email protected]
> >> >> Subject: [MarkLogic Dev General] Extracting Microsoft 
> WordML from 
> >> >> MarkLogic as .doc
> >> >>
> >> >> Is there a tutorial that describes how extract an entire WordML
> >> >> (2003) document from MarkLogic?  I want to start to with WordML 
> >> >> before tackling Word 2007 XML.
> >> >>
> >> >> Thanks!
> >> >>
> >> >> Betty
> >> >>
> >> >>
> >> >>
> >> 
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> >> >> Betty Harvey                         | Phone: 410-787-9200
> >> FAX: 9830
> >> >> Electronic Commerce Connection, Inc. |
> >> >> [email protected]                    | Washington,DC 
> XML Users Grp
> >> >> URL:  http://www.eccnet.com          | 
> http://www.eccnet.com/xmlug/
> >> >>
> >> 
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> >> >> _______________________________________________
> >> >> General mailing list
> >> >> [email protected]
> >> >> http://xqzone.com/mailman/listinfo/general
> >> >>
> >> >
> >> > _______________________________________________
> >> > General mailing list
> >> > [email protected]
> >> > http://xqzone.com/mailman/listinfo/general
> >> >
> >>
> >>
> >> 
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> >> Betty Harvey                         | Phone: 410-787-9200 
> FAX: 9830
> >> Electronic Commerce Connection, Inc. |
> >> [email protected]                    | Washington,DC XML Users Grp
> >> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
> >> 
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> >> _______________________________________________
> >> General mailing list
> >> [email protected]
> >> http://xqzone.com/mailman/listinfo/general
> >> _______________________________________________
> > General mailing list
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general
> >
> 
> 
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
> Electronic Commerce Connection, Inc. |
> [email protected]                    | Washington,DC XML Users Grp
> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
> _______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to