It works fine but I am having a very little issue here.
For example, I have 20 rows and field1 has value 'N/A' at row9 to row19
when I select the rows using xsl:choose, saying do not select field1 if
it has the value 'N/A' then it produces the first page with 8 elements
and 2nd page with one element. While I am expecting that it will
produce one page with 9 elements!
Any suggestions?
/s
<xsl:for-each select="Row[position() mod 10 = 1]"> <saxon:output
href="page{position()}.html"> <html> <body> <xsl:for-each
select=".|following-sibling::Row[position() < 10]">
<xsl:variable name="value1">
<xsl:value-of select="field1"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$value1!='N/A'">
<tr>
<td><xsl:value-of select='Field1'/></td>
<td><xsl:value-of select='Field2'/></td>..
-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: 12 February 2004 13:53
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] SAXON: Generate 10 elements per page
<xsl:for-each select="Row[position() mod 10 = 1]"> <saxon:output
href="page{position()}.html"> <html> <body> <xsl:for-each
select=".|following-sibling::Row[position() < 10]"> ...
--
http://www.dcarlisle.demon.co.uk/matthew
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
______________________________________________________________
This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.
This service does not scan any password protected or encrypted
attachments.
If you are interested in finding out more about the service, please
visit our website at
http://www.btignite.com/internetservices/btnet/products_virusscreen.htm
==============================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list