This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: need further assistance with grouping nodes into groups of 3


I think you want to do grouping. You can find help with this at:

http://www.jenitennison.com/xslt/grouping/index.html

Also, I wouldn't be surprised if discusses grouping in her new book /XSLT and XPath On The Edge, Unlimited Edition/ published this month by Hungry Minds. You can find her book here:

http://www.amazon.com/exec/obidos/ASIN/0764547763/102-7453299-5312916

I haven't bought Jeni's book but I definitely will. I have no doubt it will be a very good book on XSLT.

Mike F.

Charles F. Thomas wrote:
-------------------------
Hi All,

I am very familiar with basic to intermediate xslt, but this one is a bit
beyond my current knowledge, so any help is appreciated.

The list archive was partially useful for my request, but I am still having
difficulties.

I am working with xml documents structured like:

<images>
	<image>
	<id>mandatory info here</id>
	<title>optional element info may be here</title>
	<description>optional element info may be here</description>
	<thumbimage>
		<thumbpath>http://xxx.xxx.xxx/xxx</thumbpath>
		<thumbformat>MIME info, etc.</thumbformat>
	</thumbimage>	
	</image>

	<image>
	<id>mandatory info here</id>
	<title>optional element info may be here</title>
	<description>optional element info may be here</description>
	<thumbimage>
		<thumbpath>http://xxx.xxx.xxx/xxx</thumbpath>
		<thumbformat>MIME info, etc.</thumbformat>
	</thumbimage>	
	</image>
</images>

The <images> wrapper contain multiple <image> children.

What I'd like to do is:

a) create an HTML table that breaks the <image> children into groups of
three, so that the table is only 3 columns wide, and contains as many rows
as there are groups of three, and

b) display in each table cell:
	1) the value of the record's thumbpath element
	2) the first 25 characters of just one of the following elements, in this
order of precendence (<title>, <description>, or <id>)

The list archive contains some clues on how to break the records into
groups of 3, but I need further clarification, especially when trying to
combine it with these other functional requirements.

Any suggestions would be appreciated greatly.

Sincerely,
Chuck Thomas


	
********************************************************
INTERVIEWER: "Have you made any contributions to culture?"
ELVIS:       "Like income taxes, you mean?" 

  --From THE QUOTABLE KING 
    (Nashville: Cumberland House, 1997)

"Qui me amat, amet et canem meum" (Love me, love my dog)
 - A proverb mentioned by St. Bernard in his SERMO PRIMUS

Charles F. Thomas, Certified Archivist
Digital Projects Coordinator
Elmer L. Andersen Library, Room 6
222 21st Avenue South
Minneapolis, MN 55455
612-625-0028
thoma134@tc.umn.edu
********************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]