nesting sort/order-by statements

Subject: nesting sort/order-by statements
From: Carlos Araya <elrond@xxxxxxxxxxxxxxxx>
Date: Tue, 4 Apr 2000 14:14:39 -0700 (PDT)
Good afternoon:

I have the following IE5 XSL stylesheet and have a question.

1. I am already sorting by ctegories (attribute of the BOOK tag) I would
like to sort the results of each category by author. Is that possible with
IE's XSL implementation. 

<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="";>

<xsl:template match="/">
	<xsl:apply-templates select="BIBLIOGRAPHY"/>

<xsl:template match="BIBLIOGRAPHY">        

		<title>Annotated bibliography</title>

		<h1>Annotated Bibliography</h1>

		<h2>Table View of Titles, Author(s) and Comnets</h2>

			<table border="2" padding="4" width="100%">

			             	<xsl:apply-templates select="BOOK" order-by="@CATEGORY"/>
	<hr />
	<p>if you have any questions about this page, please contact
Carlos Araya (<A HREF="mailto:elrond@xxxxxxxxxxxxxxxx";>elrond@xxxxxxxxxxxxxxxx</A>)</p>

<xsl:template match="BOOK">

		<td width="25%"><xsl:value-of select="@CATEGORY" /></td>
		<td width="25%"><span style="font-style: italic;"><xsl:value-of select="TITLE"/></span></td>

		<td width="20%">
		<xsl:for-each select="AUTHOR">		
			<xsl:value-of select="."/><br/>	

		<td width="30%">
		<xsl:for-each select="COMENT">		
			<xsl:value-of select="."/><br/>	



Carlos E. Araya
WebCT Project Coordinator - New Media Specialist
Alquist Center for Instrucctional Development
San Jose State University

 XSL-List info and archive:

Current Thread