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

html table with three columns - following-sibling help

Subject: html table with three columns - following-sibling help?
From: Paul Tomsic <ptomsic@xxxxxxxxx>
Date: Sat, 28 Feb 2004 08:39:02 -0800 (PST)
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() &lt;
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

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.