xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Marcellini <amarc...@tiscalinet.it>
Subject Re: Split a table in many tables
Date Thu, 22 Mar 2001 08:06:05 GMT
This is the solution from M. Kay in pure XSLT:
<xsl:template match="child[position() mod 5 = 1]">
  <parent>
  <xsl:copy-of select=". | following-sibling::child[position() &lt; 5]"/>
  </parent>
</xsl:template>

<xsl:template match="child"/>

I've verivied that's works!
Bye
    Alessandro

philippe.lavoie@cactus.ca wrote:

> Care to share what it was ?
>
> Personnaly I changed my generator so that it generates by groups of 10 or 20
> entries. Didn't find a solution with just .xsl though.
>
> Phil
>
> -----Original Message-----
> From: Alessandro Marcellini [mailto:amarcell@tiscalinet.it]
> Sent: Wednesday, March 21, 2001 10:37 AM
> To: fop-dev@xml.apache.org
> Subject: Re: Split a table in many tables
>
> OK,
> I found a solution!
>
> Alessandro Marcellini wrote:
>
> > Hi,
> > I'm a newbie in XML and FOP, i've to tranform a XML document like this:
> > <?xml version='1.0'?>
> > <root>
> >   <child>ch1</child>
> >   <child>ch2</child>
> >   <child>ch3</child>
> >   <child>ch4</child>
> >   <child>ch5</child>
> >   <child>ch6</child>
> >   <child>ch7</child>
> >   <child>ch8</child>
> >   <child>ch9</child>
> > </root>
> > Into another like this:
> > <?xml version='1.0'?>
> > <root>
> >   <parent>
> >     <child>ch1</child>
> >     <child>ch2</child>
> >     <child>ch3</child>
> >     <child>ch4</child>
> >     <child>ch5</child>
> >   </parent>
> >   <parent>
> >     <child>ch6</child>
> >     <child>ch7</child>
> >     <child>ch8</child>
> >     <child>ch9</child>
> >   </parent>
> > </root>
> > Becose I've to split the first document in different table and pages.
> > Anyone has some idea about the syntax of the stylesheet that I've to
> > use?
> > Thank's
> >         Alessandro
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Mime
View raw message