Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] show the information into several pages


Subject: Re: [xsl] show the information into several pages
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 30 Jan 2008 16:36:18 +0100

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/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords