Swapping table rows and columns

Subject: Swapping table rows and columns
From: Steve Slatcher <Steve_Slatcher@xxxxxxxxxxxx>
Date: Mon, 5 Jul 1999 14:50:54 +0100

I am considering the design an application using XML and XSLT to display tables as HTML. In the most obvious design, the XML implicitly defines what will be displayed as rows and what will be displayed as columns; the outer level elements in the XML correspond to the outer level <tr> row tags in HTML.

Is it possible to "swap rows and columns" using XSLT?  If so, is it really a practical thing to attempt from a point of view of complexity and efficiency? Or should I resign myself to the fact that the element nesting in the XML should reflect the final apperance of the table?

Many thanks.

Steve Slatcher

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

Current Thread