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

Creating frames, bookmarks, TOC using 1 stylesheet

Subject: Creating frames, bookmarks, TOC using 1 stylesheet
From: "Nazrul" <nazrul@xxxxxxxxxxxxxxx>
Date: Tue, 8 May 2001 11:08:59 +1000
frames bookmarks
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

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.