Subject: [xsl] 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 |
>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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Does the XML pseudo-names, Eric van der Vlist | Thread | Re: [xsl] Organizing list of items , Paul Tyson |
RE: [xsl] How to use an XML-based L, Taras Tielkes | Date | Re: [xsl] Does the XML pseudo-names, Evan Lenz |
Month |