[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] html table with three columns - following-sibling help
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|