W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2001

for-each question

From: Kevin Fricovsky <kfricovsky@fusebox.com>
Date: Thu, 15 Mar 2001 08:45:10 -0500
To: <www-xsl-fo@w3.org>
Message-ID: <BAEBLOOEMDJFGIGJDEICOEDLCCAA.kfricovsky@fusebox.com>
If I have an HTML table with 3 columns, and I want to loop through my source
document(xsl:for-each), creating a NEW <tr> for every 4th element. I was
attempting to use the theory behind <xsl:when test="managers[position() mod
2 = 1]"> BUT it's failing.

Any tips for a newbie???

Quick desired "look" of HTML:

1	2	3
4	5	6
7	8	9
10	11


This is an example of what the source doc would look like.

example: source document.xml

<managers>
	<manager>
		<fname>foo</fname>
		<lname>foo</lname>
		<title>president</title>
	</manager>
	<manager>
		<fname>foo</fname>
		<lname>foo</lname>
		<title>president</title>
	</manager>
	<manager>
		<fname>foo</fname>
		<lname>foo</lname>
		<title>president</title>
	</manager>
	<manager>
		<fname>foo</fname>
		<lname>foo</lname>
		<title>president</title>
	</manager>
	<manager>
		<fname>foo</fname>
		<lname>foo</lname>
		<title>president</title>
	</manager>
</managers>

Thanks in advance!!!





-----Original Message-----
From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org]On
Behalf Of Hernandez Ramirez, Marta
Sent: Thursday, March 15, 2001 4:22 AM
To: 'www-xsl-fo@w3.org'
Subject: <BR>


Is there somenthing like <BR> in HTML to use in FO?
Received on Thursday, 15 March 2001 08:38:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT