Re: [xslt] How to implement unusual chunking in a stylesheet



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.

Peter

-- 
Peter Williams     peter@newton.cx / peterw@ximian.com

&quot;Why should I have to change my name? He's the one who 
sucks!&quot;                              -- Michael Bolton




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]