Subject: [xsl] html table with three columns - following-sibling help? From: Paul Tomsic <ptomsic@xxxxxxxxx> Date: Sat, 28 Feb 2004 08:39:02 -0800 (PST) |
Hi, I'm trying to create an HTML table that contains N-number of rows and 3-columns. I'm getting the following error: "A node test that matches either NCName:* or QName was expected" Here's my XML: <Base> <Art_group> <Art file_name="Cityscape" file_uri_lores="/images/book_building/cityscape.jpg" id="1"/> <Art file_name="Clock" file_uri_lores="/images/book_building/clock.jpg" id="2"/> <Art file_name="Fish" file_uri_lores="/images/book_building/Fish.jpg" id="3" /> <Art cdguser_id="0" file_name="Glass Tower" file_uri_lores="/images/book_building/GlassTower.jpg" id="4" /> ... And the XSL that I'm using: <table class="threeCol" cellspacing="0" cellpadding="0"> <xsl:for-each select="/Base/Art_group/Art[position() mod 3 = 1]"> <tr> <xsl:for-each select=". | following-sibling::/Base/Art_group/Art[position() < 3]"> <td class="data"> <input type="radio" name="art_id" id="art_id" value="{@id}"/> <img src="{@file_uri_lores}" width="135" height="184" id="coverImage" alt="{@file_name}" /> </td> </xsl:for-each> </tr> </xsl:for-each> </table> I believe the error is on the following-sibling line, but not quite sure what the problem is. thanks in advance. __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: What is the future of XSL, Mulberry Technologie | Thread | Re: [xsl] html table with three col, David Carlisle |
RE: Re: [xsl] Re: What is the futur, cknell | Date | [xsl] Re: What is the future of XSL, Mulberry Technologie |
Month |