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, 
<[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]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


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

Reply via email to