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: <general-boun...@developer.marklogic.com> on behalf of Rajesh Kumar 
<rajava...@gmail.com>
Reply-To: MarkLogic Developer Discussion <general@developer.marklogic.com>
Date: Thursday, 5 April 2018 at 09:24
To: "general@developer.marklogic.com" <general@developer.marklogic.com>
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, 
<general-requ...@developer.marklogic.com<mailto:general-requ...@developer.marklogic.com>>
 wrote:
Send General mailing list submissions to
        general@developer.marklogic.com<mailto:general@developer.marklogic.com>

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
        
general-requ...@developer.marklogic.com<mailto:general-requ...@developer.marklogic.com>

You can reach the person managing the list at
        
general-ow...@developer.marklogic.com<mailto:general-ow...@developer.marklogic.com>

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 <rajava...@gmail.com<mailto:rajava...@gmail.com>>
Subject: [MarkLogic Dev General] transformation of document formats
To: general@developer.marklogic.com<mailto:general@developer.marklogic.com>
Message-ID:
        
<cagcyhoud_r_pbihykz+bfgzb7qlesdku59awfrguwxy7oh4...@mail.gmail.com<mailto:cagcyhoud_r_pbihykz%2bbfgzb7qlesdku59awfrguwxy7oh4...@mail.gmail.com>>
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 
<mary.holst...@marklogic.com<mailto:mary.holst...@marklogic.com>>
Subject: Re: [MarkLogic Dev General] transformation of document
        formats
To: MarkLogic Developer Discussion 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Message-ID: 
<op.zgwqvjhufi7...@mary-z620.marklogic.com<mailto:op.zgwqvjhufi7...@mary-z620.marklogic.com>>
Content-Type: text/plain; charset="utf-8"

On Tue, 03 Apr 2018 04:43:36 -0700, Rajesh Kumar 
<rajava...@gmail.com<mailto:rajava...@gmail.com>>
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
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


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

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to