[xsl] Creating frames, bookmarks, TOC using 1 stylesheet

Subject: [xsl] Creating frames, bookmarks, TOC using 1 stylesheet
From: "Nazrul" <nazrul@xxxxxxxxxxxxxxx>
Date: Tue, 8 May 2001 11:08:59 +1000
What I have is a well-formed and valid XML document which contains Chapters
and Topics just like in a book.

I have created a Table of Content based on the bookmarks tagged to each
Chapters and Topics. So you'll see:

This Book contains the following chapters:
Chapter 1
Chapter 2
Chapter 3

Chapter 1 has these following Topics:
Topic 1
Topic 2
Topic 3

And so on and so forth with the rest of the contents at the bottom of this
TOC.

This is part of the stylesheet:

  <xsl:when test="CHAPTER">
  <table border="0" width="100%" bgcolor="green" cellpadding="4">
   <tr><td width="100%" align="center"><p><font color="white" size="4"
face="Verdana,Arial">
   Table of Contents:
   </font></p></td></tr></table>
   <!-- Creating a block-like table for the actual TOC -->
   <table width="100%" border="0" cellspacing="0" cellpadding="4">
   <tr height="20"></tr>
   <tr>
   <td valign="top" align="left">
   <font color="blue" face="Verdana,Arial" size="2">
   <b>This book contains the following chapters:</b>
   </font></td>

   <!-- The actual TOC is built -->
   <td valign="top" align="left">
   <font face="Verdana,Arial" size="2">
   <xsl:for-each select="CHAPTER">
    <A><xsl:attribute
name="HREF">#<xsl:eval>uniqueID(this)</xsl:eval></xsl:attribute>
         <xsl:value-of select="CHAPTERTITLE"/></A>
    <br/>
   </xsl:for-each>
   </font>
   </td>
   </tr>
   <tr>
   <td width="20%" valign="top" align="left"></td>
   <td width="80%"></td>
   </tr>
   <tr height="20"></tr>
   </table>
  </xsl:when>

My question is:
Can I create a page with 2 frames and put the TOC on
the left side and the contents on the right side that
links to each other based on the bookmarks using only
1 stylesheet?



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread