I make a new css include your xsl
red color i make my css
green color make xsl better
with-param kn define which node will displayed
and
with-param where define which column it is
<?xml version="1.0" encoding="utf-8"?>
<!-- DWXMLSource="books.xml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="html" indent="yes" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Tsakaki's Bookshelf</title>
<!--<link href="books.css" rel="stylesheet" type="text/css" />-->
<style type="text/css">
.col1 {
background-color: #f0d0d0;
border: solid 1px #000000;
color: #000000;
padding: 8px;
position: absolute;
left: 0px;
top: 90px;
width: 300px;
}
.col2 {
background-color: #c0a0a0;
border: solid 1px #000000;
color: #000000;
padding: 8px;
position: absolute;
left: 320px;
top: 90px;
width: 300px;
}
.col3 {
background-color: #d0f0d0;
border: solid 1px #000000;
color: #000000;
padding: 8px;
position: absolute;
left: 640px;
top: 90px;
width: 300px;
}
.clearFloat
{
padding: 8px;
width: 300px;
height: 420px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>Tsakaki's Bookshelf</h1>
</div>
<div id="content">
<xsl:call-template name="all">
<xsl:with-param name="kn" select="//book[position()<7]"/>
<xsl:with-param name="where" select="'1'"/>
</xsl:call-template>
<xsl:call-template name="all">
<xsl:with-param name="kn" select="//book[position()>6 and position()<13 ]"/>
<xsl:with-param name="where" select="'2'"/>
</xsl:call-template>
<xsl:call-template name="all">
<xsl:with-param name="kn" select="//book[position()>12]"/>
<xsl:with-param name="where" select="'3'"/>
</xsl:call-template>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template name="all">
<xsl:param name="kn"/>
<xsl:param name="where"/>
<div class="col{$where}">
<xsl:for-each select="$kn">
<div class="clearFloat">
<xsl:element name="img">
<xsl:attribute name="class">cover</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="image"/></xsl:attribute>
<xsl:attribute name="width">72</xsl:attribute>
<xsl:attribute name="height">107</xsl:attribute>
</xsl:element>
<h2><xsl:value-of select="title" /></h2>
<p><span class="subhead">Author: </span><xsl:value-of select="author" /></p>
<p><span class="subhead">Genre: </span><xsl:value-of select="genre" /></p>
<p><span class="subhead">Times Read: </span><xsl:value-of select="read" /></p>
<xsl:choose>
<xsl:when test="status=''">
</xsl:when>
<xsl:when test="status!=''">
<p><span class="subhead">Status: </span><xsl:value-of select="status" /></p>
</xsl:when>
</xsl:choose>
</div>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
you can call via icq 567877710