[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Organizing list of items in HTML table

Subject: Organizing list of items in HTML table
From: Mulberry Technologies List Owner<xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Sep 2001 11:35:28 -0400
organizing list
>From: "Ron Chibnik" <ron@xxxxxxxxxxx>
>To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
>Subject: Organizing list of items in HTML table
>Date: Thu, 27 Sep 2001 09:21:19 -0400
>
>I'm trying to organize a list of images into a table. I've looked at the FAQ
>for "Tables" and have almost gotten item 8 (XSL Table Styling) to work but I
>get the error
>   "xsl:with-param is not allowed in this position in the stylesheet!"
>I'm using Xalan dated Feb 2, 2001 (don't know exactly which version.)
>
>Perhaps someone has some code handy that will provide a simple
>solution. My XML is similar to:
>
>   <imageList>
>	   <image>
>		   <imageName>image1.jpg</imageName>
>			   ... other image stuff like captions, etc. ...
>	   </image>
>	   <image>
>		   <imageName>image1.jpg</imageName>
>	   </image>
>		   ...
>	   <image>
>		   <imageName>image7.jpg</imageName>
>	   </image>
>   </imageList>
>
>And I would like to produce a table something like:
>   <table>
>	   <tr>
>		   <td>image1</td>
>		   <td>image2</td>
>		   <td>image3</td>
>	   </tr>
>	   <tr>
>		   <td>image4</td>
>		   <td>image5</td>
>		   <td>image6</td>
>	   </tr>
>	   <tr>
>		   <td>image7</td>
>	   </tr>
>   </table>
>
>Ideally, I'd like to be able to specify the # of columns, either by editing
>the style sheet, or through some parameter in the XML file. But my biggest
>problem is getting the table columns to work right. The Example I've been
>using (from the FAQ) duplicates some, and omits one or more images
>(depending on how many images in imageList).
>
>Thanks in advance for any advice you can provide
>Regards
>Ron


-- 
======================================================================
B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com  
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML              
======================================================================

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.