Re: [xslt] How to implement unusual chunking in a stylesheet
- From: John Hurst <ajh csse monash edu au>
- To: xslt gnome org
- Cc: peter newton cx
- Subject: Re: [xslt] How to implement unusual chunking in a stylesheet
- Date: Sun, 9 Jun 2002 18:10:48 +1000
G'day Peter,
On Sun, 09 Jun 2002 00:27:24 -0400, Peter Williams wrote:
> Hi John,
>
> On Sat, 2002-06-08 at 21:43, John Hurst wrote:
> > G'day Peter,
> >
> > Something like?
> >
> > <xsl:template match="item">
> > <xsl:for-each select="node">
> > <item><node><xsl:apply-templates select="."/></node></item>
> > </xsl:for-each>
> > </xsl:template>
> >
>
> Uh, how does this achieve chunking? I want to create multiple output
> documents, like the Docbook's chunk.xsl, where each document contains
> no more than, say, 20 <node>s, and however many <item>s are necessary
> to contain them.
Sorry, I guess I misunderstood your original question.
This would go beyond my immediate skills in XSLT, but I'd attempt it by
building some sort of temporary result tree in a local variable (using
something like the above loop to fill the result tree), and outputting
that when it got to the required size.
--
--John Hurst
-- Associate Dean (Teaching), Faculty of Information Technology
-- Assoc Prof, School of Computer Science and Software Engineering
--rm G23, Building 63
--PO Box 26, Monash University, Clayton, VIC 3168 ~ ~~~&#:
--ajh@csse.monash.edu.au +61 3 990 55192 _..___ ---____@___H__
--(mob 0407 569 041) (fax +61 3 990 55146) |_____[_|_________[__]_
--http://www.csse.monash.edu.au/~ajh oo oo oo O--O--O o=o
--free times,
http://www.csse.monash.edu.au/~ajh/cgi-bin/appointments.cgi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]