[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Zipping xsl:result-documents into ePub


Subject: RE: [xsl] Zipping xsl:result-documents into ePub
From: Emmanuel Bégué <eb@xxxxxxxxxx>
Date: Tue, 25 Aug 2009 18:31:13 +0200

Hello,

.odt files are just .zip files that contain meta.xml, settings.xml,
styles.xml and content.xml (this last file being the document itself,
the other containing what their name suggest).

You can rebuild the whole document file in xml by concatening the content
of the above four files (after their respective root element) in an
<office:document> element.

In Saxon you can access directly any 'bar.xml' file inside a 'foo.zip'
file as such:
	doc('jar:foo.zip!/bar.xml')

Hope this helps.
Regards,
EB


> -----Original Message-----
> From: Martynas Jusevicius [mailto:martynas.jusevicius@xxxxxxxxx]
> Sent: Tuesday, August 25, 2009 5:55 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Zipping xsl:result-documents into ePub
>
>
> Thanks Florent, EXPath worked like a charm! So far at least. I joined
> the Google Group.
>
> 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? :)
>
> Martynas
> semantic-web.dk


Current Thread
Keywords
xml