Is it posible to create a two balanced column layout in html with xslt?
I have the following xsl and xml files.
The topic section is the bit that I want to put into two balanced (as far as possible) columns. I would prefer to end a topic in one column an dthen start the next column with a new topic.
XSL FILE
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:fo="
http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" version="1.0" omit-xml-declaration="yes"
encoding="ISO-8859-1"/>
<xsl:template match="/courses">
<xsl:for-each select="course">
<p>
<strong>Course: <xsl:value-of select="course_title"/>
</strong>
<br/>
<strong>Duration: <xsl:value-of select="course_duration"/>
</strong>
</p>
<p>
<strong>Course Aims: </strong>
<br/>
<xsl:apply-templates select="course_aims"/>
</p>
<p>
<strong>Course Outline:</strong>
<br/>
<xsl:apply-templates select="topic"/>
</p>
<p>
<strong>Target Audience:</strong>
<br/>
<xsl:apply-templates select="target_audience"/>
</p>
<p>
<strong>Assumed Knowledge:</strong>
<br/>
<xsl:apply-templates select="prerequisites"/>
</p>
</xsl:for-each>
</xsl:template>
<!-- DISPLAY COURSE AIMS -->
<xsl:template match="course_aims">
<xsl:apply-templates select="paragraph"/>
</xsl:template>
<!-- DISPLAY TOPICS -->
<xsl:template match="topic">
<p>
<strong>
<xsl:value-of select="topic_title"/>
</strong>
<br/>
<xsl:apply-templates select="topic_items"/>
</p>
</xsl:template>
<xsl:template match="topic_items">
<xsl:apply-templates select="topic_item"/>
</xsl:template>
<xsl:template match="topic_item">
<xsl:value-of select="."/>
<br/>
</xsl:template>
<!-- DISPLAY TARGET AUDIENCE -->
<xsl:template match="target_audience">
<xsl:apply-templates select="paragraph"/>
</xsl:template>
<!-- DISPLAY PREREQUISITES-->
<xsl:template match="prerequisites">
<xsl:apply-templates select="paragraph"/>
</xsl:template>
<!-- PARAGRAPH -->
<xsl:template match="paragraph">
<p>
<xsl:value-of select="."/>
</p>
</xsl:template>
</xsl:stylesheet>
XML FILE
<courses xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocat
ion="C:\Do
cuments and Settings\Administrator\My Documents\SoftAware XML\courses.xsd">
<course course_id="MSXL2003_L1">
<course_title>Microsoft Excel 2003 Level 1</course_title>
<course_level>1</course_le
vel>
<course_duration>One Day</course_duration>
<course_aims>
<paragraph>
Excel 2003 is the latest version of Microsofts spreadsheet program. This course will introduce you to the basics.
</paragraph>
<paragraph>
This is an entirely hands-on course and there will be opportunity for users to raise questions about their own specific projects and requirements.
</paragraph>
</course_aims>
<topic>
<topic_title>Introduction to Excel 2003</topic_title>
<topic_items>
<topic_item>Starting Excel 2003</topic_item>
<topic_item>The Excel 2003 Screen</topic_item>
<topic_item>The Worksheet Area</topic_item>
<topic_item>The Cell Pointer</topic_item>
<topic_item>Mouse Pointers</topic_item>
<topic_item>Right-Click Shortcut Menus</topic_item>
<topic_item>Exiting or Closing Excel 2003</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>How to use Help properly</topic_title>
<topic_items>
<topic_item>Help Index and Contents</topic_item>
<topic_item>Using Find</topic_item>
<topic_item>Screen Tips and Whats This?</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>Working with Excel Files</topic_title>
<topic_items>
<topic_item>Workbooks and Worksheets</topic_item>
<topic_item>Creating a New Workbook</topic_item>
<topic_item>Moving Around the Worksheet</topic_item>
<topic_item>Saving Your Workbook</topic_item>
<topic_item>Closing Files</topic_item>
<topic_item>Opening Files</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>Cells and Ranges</topic_title>
<topic_items>
<topic_item>Cell Addresses</topic_item>
<topic_item>Range Addresses</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>Entering and Editing Worksheet Data</topic_title>
<topic_items>
<topic_item>Entering Data</topic_item>
<topic_item>Editing Data</topic_item>
<topic_item>Undo and Redo</topic_item>
<topic_item>Selecting Cells and Ranges</topic_item>
<topic_item>Moving and Copying Data</topic_item>
<topic_item>Columns and Rows</topic_item>
<topic_item>Worksheets</to
pic_item>
</topic_items>
</topic>
<topic>
<topic_title>Introduction to Formulas</topic_title>
<topic_items>
<topic_item>Entering a Basic Formula</topic_item>
<topic_item>The SUM Function</topic_item>
<topic_item>Editing Formulas</topic_item>
<topic_item>AutoSum</topic
_item>
<topic_item>Moving and Copying Formulas</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>Entering Data Automatically</topic_title
>
<topic_items>
<topic_item>Creating Number, date and text series </topic_item>
<topic_item>Save hours by Copying Formulas</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>Formatting Worksheets</topic_title>
<topic_items>
<topic_item>Number Formatting</topic_item>
<topic_item>Alignment</top
ic_item>
<topic_item>Font Formatting</topic_item>
<topic_item>Borders and Shading</topic_item>
<topic_item>The Format Painter</topic_item>
<topic_item>Column Formatting</topic_item>
<topic_item>Row Formatting</topic_item>
</topic_items>
</topic>
<topic>
<topic_title>Viewing the Worksheet</topic_title>
<topic_items>
<topic_item>Using Zoom</topic_item>
<topic_item>Split</topic_i
tem>
<topic_item>Freeze Panes</topic_item>
</topic_items>
</topic>
<target_audience>
<paragraph>
The course is designed for spreadsheet beginners with the requisite skills outlined below. It is also useful for those changing from other programs as well as those who are self-taught and who wish to consolidate their basic knowledge before moving on to more advanced courses.
</paragraph>
</target_audience>
<prerequisites>
<paragraph>
Knowledge of the Windows operating system, file management, and keyboard layout is essential
</paragraph>
</prerequisites>
</course>
</courses>