Subject: RE: [xsl] First close a tag, then open From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx> Date: Wed, 3 Dec 2003 09:19:57 -0700 |
> From: Patrick van Halderen [mailto:patrick@xxxxxxxxxxxxxxxxxxx] > Sent: Wednesday, December 03, 2003 8:53 AM > Subject: [xsl] First close a tag, then open > > > Hi all, > > I'm currently facing the following problem: > > I need to format some data in a list into an HTML table. However, I > need 2 columns, so I thought of using a <xsl:if > test="position() mod 2 > = 0"> after each item. However, when making things up, I > ended with the > following code, which doesn't validate, for closing the tr first, and > opening it there after. Check this: On the list of Top Ten > > <xsl:template name="supply"> > > <table> > > <tr> > > <xsl:for-each select="itemname"> > > <td> > *The data in here* > </td> > > <xsl:if test="position() mod 2 = 0"> > > </tr> > <tr> > > </xsl:if> > > </tr> > </table> > > > Does anyone know how to solve this? > Thanks, > Patrick > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] First close a tag, then o, G. Ken Holman | Thread | RE: [xsl] First close a tag, then o, Martinez, Brian |
Re: [xsl] First close a tag, then o, David Carlisle | Date | Re: AW: [xsl] Strange Sorting Probl, David Carlisle |
Month |