xsl-list
[Top] [All Lists]

Re: [xsl] show the information into several pages

2008-01-30 08:36:49
Miren Urkixo wrote:
i dont understand the doc.
can you help me?

Are you using XSLT 2.0 (with Saxon or Altova or Gestalt)?
Then you can use xsl:result-document e.g.


  <xsl:param name="items-per-page" select="10"/>

  <xsl:template match="/">
<xsl:for-each-group select="sn_servicioproyecto/masterinformaciones/sn_masterinformacion"
    group-by="position() idiv $items-per-page">
       <xsl:result-document href="page{current-grouping-key()}.html">
         <html>
           <body>
             <ul>
               <xsl:apply-templates select="current-group()"/>
             </ul>
           </body>
         </html>
       </xsl:result-document>
    </xsl:for-each-group>
  </xsl:template>

  <xsl:template match="sn_masterinformacion">
    <li><xsl:value-of select="masterinformacion_id"/></li>
  </xsl:template>
--

        Martin Honnen
        http://JavaScript.FAQTs.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>
--~--

<Prev in Thread] Current Thread [Next in Thread>