[MarkLogic Dev General] unsubscribe

2018-05-10 Thread Philip Fennell

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


Re: [MarkLogic Dev General] transformation of document formats

2018-04-05 Thread Philip Fennell
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:  on behalf of Rajesh Kumar 

Reply-To: MarkLogic Developer Discussion 
Date: Thursday, 5 April 2018 at 09:24
To: "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, 
>
 wrote:
Send General mailing list submissions to
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

You can reach the person managing the list at

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 >
Subject: [MarkLogic Dev General] transformation of document formats
To: general@developer.marklogic.com
Message-ID:

>
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 +
From: Mary Holstege 
>
Subject: Re: [MarkLogic Dev General] transformation of document
formats
To: MarkLogic Developer Discussion 
>
Message-ID: 
>
Content-Type: text/plain; charset="utf-8"

On Tue, 03 Apr 2018 04:43:36 -0700, Rajesh Kumar 
>
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
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 

Re: [MarkLogic Dev General] MarkLogic Server 4.1 and settingserialization option...

2009-07-30 Thread Philip Fennell
That's Brilliant!

Thank you Geert


2009/7/30 Geert Josten geert.jos...@daidalos.nl:
 Hi Philip,

 I am not aware of XQuery features that allow specifying doctype for 
 outputting, similar to how that is possible in XSLT. Nor is there  to my 
 knowledge specific functionality in MarkLogic Server to handle this. But 
 doing it the way below will work perfectly, just add the following statement 
 somewhere in your query body:

 xdmp:set-response-content-type(text/html; charset=utf-8)

 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: general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of
 Philip Fennell
 Sent: donderdag 30 juli 2009 11:05
 To: general@developer.marklogic.com
 Subject: [MarkLogic Dev General] MarkLogic Server 4.1 and
 setting serialization option...

 Hello,

 I have a question regarding the setting of serialization
 options, specifically DOCTYPE declarations, for the output of
 an XQuery... yes that old chestnut!

 I've noticed from previous e-mails to this list that treating
 the DOCTYPE declaration as a string is a possible solution,
 but from the results I have had so far ML Server 4.1 returns
 the document as text/plain if you do something like this:


 xquery version 1.0-ml;

 '!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
     http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;',
 html xmlns=http://www.w3.org/1999/xhtml;
 ...
 /html


 I've searched the developer zone, but to no avail.

 I know that the provision of serialization setting is
 optional but is there any other way of setting this with ML Server?


 Regards

 Philip Fennell
 ___
 General mailing list
 General@developer.marklogic.com
 http://xqzone.com/mailman/listinfo/general


 ___
 General mailing list
 General@developer.marklogic.com
 http://xqzone.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general