You can certainly convert XML to ePUB or XSL-FO in MarkLogic.  As for PDF, 
you'd have to go PDF => XHTML => XML => whatever

I've done this myself: the built-in PDF conversion application will target 
simplified DocBook, and then you can go to XSL-FO. I've done this myself, using 
the DocBook stylesheets (tweaked for my purposes IIRC). What you get out of PDF 
conversion may need some amount of manual clean-up.

To render XSL-FO you'd need to go outside the server to call your rendering 
engine.

On 04/05/2018 01:24 AM, Rajesh Kumar wrote:
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<mailto:General@developer.marklogic.com>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


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

Reply via email to