xsl-list
[Top] [All Lists]

RE: [xsl] Splitting file into N-sized chunks

2009-08-04 16:38:10
Xalan uses <xsl:redirect-write ... >

XSLT 2.0 uses <xsl:result-document ... >

But Marynas, you may have an easier time just using something like PHP
to chunk it out into 300k-sized file.


-----Original Message-----
From: Michael Ludwig [mailto:milu71(_at_)gmx(_dot_)de]
Sent: Tuesday, August 04, 2009 4:09 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Splitting file into N-sized chunks

Martynas Jusevicius schrieb am 04.08.2009 um 21:58:52 (+0200):

how do I split an XHTML file into chunks of some specific size (say
300 KB) using XSLT?

You determine the boundaries, set up matching criteria, and then use
one of <exsl:result-document> (1.0 + EXSLT), <xsl:document> (2.0), or
<xalan:write> (Xalan). All documented online on the sites for Xalan,
EXSLT, and XSLT 2.0.

Michael Ludwig

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--