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

RE: Displaying entries in a table vertically

Subject: RE: Displaying entries in a table vertically
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 18 Jul 2001 02:42:14 +0100
list vertically in a table
When displaying entries horizontally, you do

<xsl:for-each select="item[position() mod $n = 1]">
  <xsl:for-each select=". | following-sibling::item[position() &lt; $n]"

For a vertical display, you just need to change the selection conditions to
something like

<xsl:for-each select="item[position() &lt;= $n]"
  <xsl:for-each select=". | following-sibling::item[position() mod $n = 0]">

Not tested and may need minor adjustment.

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Alan Alda
> Sent: 17 July 2001 22:36
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Displaying entries in a table vertically
>
>
> Hi,
>
> I am writing an XSL sheet which produces an HTML table
> using some entries (which are sorted by my XSL before
> displaying) of an XML file. Pretty straightforward...
>
> The problem is that the specifications doc. that I
> have, requires me to display the entries in the table
> sorted in a vertical fashion.
>
> This means that the spec. requires the entries to be
> like:
> A P U
> B Q V
> C R
>
> whereas, since I am outputting the entries row-wise, I
> am getting the output:
> A B C
> P Q R
> U V
>
> Is there any way I can display the entries sorted in a
> vertical fashion in the table using my XSL sheet?
>
> Thanks,
> Cheers,
> Alan.
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.