[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Zipping xsl:result-documents into ePub

Subject: Re: Zipping xsl:result-documents into ePub
From: Martynas Jusevicius <martynas.jusevicius@xxxxxxxxx>
Date: Tue, 25 Aug 2009 20:41:22 +0200
Re:  Zipping xsl:result-documents into ePub
Thanks, I had found the presentation before :)

Regarding my project, I'm doing a 2-pass transformation. First ODF > XHTML
using
http://xml.openoffice.org/odf2xhtml/
and then XHTML > ePub -- splitting into separate files by chapter and
packing, which I'm currently implementing (with the help of EXPath
:)).
I think I'll be able to publish this after I figure out how to make it
as generic as possible.

Martynas
semantic-web.dk

On Tue, Aug 25, 2009 at 7:13 PM, Florent Georges<lists@xxxxxxxxxxxx> wrote:
> Martynas Jusevicius wrote:
>
>> Thanks Florent, EXPath worked like a charm!
>
>  Thanks, good to hear :-)
>
>> Maybe you have an example on reading OpenDocument (at least
>> .odt), so that I could drop ODFToolkit and have my whole ODF >
>> ePub workflow as XSLT? :)
>
>  Yes.  ODF files (OpenDocument Format, ODT is a special case,
> for text documents) are regular ZIP files.  You can thus use the
> ZIP module functions as for any other ZIP file.  In particular,
> the following functions allow you to extract entries from the
> file:
>
>    zip:xml-entry($href, $entry) as document-node()
>    zip:html-entry($href, $entry) as document-node()
>    zip:text-entry($href, $entry) as xs:string
>    zip:binary-entry($href, $entry) as xs:base64Binary
>
> and the following to list the content of the ZIP file (aka its
> structure):
>
>    zip:entries($href) as element(zip:file)
>
>  If you are interested in this module, you can have a look at
> the presentation I gave at Balisage 10 days ago.  You will find
> links in the "EXPath resources" section on the webpage
> http://www.expath.org/resources.html, for the paper, the
> presentation itself, and a few simple but complete examples I
> showed there.
>
>  If you have any question, or if you run into bugs, please use
> the mailing list (the Google group.)  I would be interested to
> see how you use the ZIP module in this case (ODF -> EPUB) if the
> project is public.
>
>  Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.