Hello Rajesh,

> Is it possible to do another way around, like XML to PDF or XML to ePUB
> within MarkLogic?
> Can we use XSL-FO inside MarkLogic?

You can certainly generate XSL-FO with XSLT and/or XQuery but you will need an 
external tool to convert that to PDF. It is relatively simple to set-up a PDF 
generating pipeline/service using Apache Cocoon, for example, that you can 
submit your XSL-FO to for rendering. You can then either store the result in 
MarkLogic or forward on to the client application that made the original 
request.

You can also generate Microsoft Office documents like DOCX which you can 
package using the ZIP functionality.

I’ve not personally worked with ePUB formats but I imagine that they just more 
of the same.


Regards

Philip

From: <[email protected]> on behalf of Rajesh Kumar 
<[email protected]>
Reply-To: MarkLogic Developer Discussion <[email protected]>
Date: Thursday, 5 April 2018 at 09:24
To: "[email protected]" <[email protected]>
Subject: Re: [MarkLogic Dev General] transformation of document formats

Thanks, Mary for your reply. As per my understanding, CPF can be used to 
transform the PDF or any other format to XHTML. Is it possible to do another 
way around, like XML to PDF or XML to ePUB within MarkLogic? Can we use XSL-FO 
inside MarkLogic?

Thanks,
Rajesh

On Wed, Apr 4, 2018 at 12:30 AM, 
<[email protected]<mailto:[email protected]>>
 wrote:
Send General mailing list submissions to
        [email protected]<mailto:[email protected]>

To subscribe or unsubscribe via the World Wide Web, visit
        http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
        
[email protected]<mailto:[email protected]>

You can reach the person managing the list at
        
[email protected]<mailto:[email protected]>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."


Today's Topics:

   1. transformation of document formats (Rajesh Kumar)
   2. Re: transformation of document formats (Mary Holstege)


----------------------------------------------------------------------

Message: 1
Date: Tue, 3 Apr 2018 17:13:36 +0530
From: Rajesh Kumar <[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] transformation of document formats
To: [email protected]<mailto:[email protected]>
Message-ID:
        
<cagcyhoud_r_pbihykz+bfgzb7qlesdku59awfrguwxy7oh4...@mail.gmail.com<mailto:cagcyhoud_r_pbihykz%[email protected]>>
Content-Type: text/plain; charset="utf-8"

Hi Team,

Is there a way that word can be saved in MarkLogic and can be converted to
other formats like PDF or ePUB within MarkLogic instead of calling external
API of a different technology like Saxon.

Thanks,
Rajesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20180403/fc271dd1/attachment-0001.html

------------------------------

Message: 2
Date: Tue, 3 Apr 2018 18:27:11 +0000
From: Mary Holstege 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] transformation of document
        formats
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Message-ID: 
<[email protected]<mailto:[email protected]>>
Content-Type: text/plain; charset="utf-8"

On Tue, 03 Apr 2018 04:43:36 -0700, Rajesh Kumar 
<[email protected]<mailto:[email protected]>>
wrote:

> Hi Team,
>
>
> Is there a way that word can be saved in MarkLogic and can be converted
> to other
> formats like PDF or ePUB within MarkLogic instead of calling external
> API of a
> different technology like Saxon.
>
>
> Thanks,
>
> Rajesh

Sure. MarkLogic has native XSLT and XQuery support, as well as APIs for
zipping and unzipping files.
The product documentation is here: http://docs.marklogic.com/

There is a pipeline available for use with Content Processing Framework
that automatically unzips and does a little clean-up on
.docx files. See: http://docs.marklogic.com/guide/cpf/default

XSLT information here: http://docs.marklogic.com/guide/xquery/xslt

//Mary



------------------------------

_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 166, Issue 2
***************************************

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to