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

RE: windows-like table sorter

Subject: RE: windows-like table sorter
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 28 Mar 2002 08:38:21 -0000
excel like table html
You'll find an working example stylesheet that does this sort of thing in
Appendix A of my XSLT Programmer's Reference (Wrox).

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Robert
> Sösemann
> Sent: 27 March 2002 19:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  windows-like table sorter
>
>
> Hello,
>
> I want my XML source transform to an HTML table and add an Excel-like
> sorting mechanism.
> The XSL should provide the following features:
> - column header clickable (sort ascending/descending)
> - sort alphabetically when text, sort by number if number
>
>
> my XML source looks like this:
> ########################
>
> <result>
>     <header>
>         <column nr="1">ColumnA</column>
>         <column nr="2">ColumnB</column>
>         ...
>         <column nr="X">ColumnX</column>
>     </header>
>     <body>
>         <row>
>             <attribute nr="1">ValueA</attribute>    <!-- all
> values can be
> number or text you don't know it in advance -->
>             <attribute nr="2">ValueA</attribute>
>             ...
>             <attribute nr="X">ValueX</attribute>
>         </row>
>         ...more rows
>     </body>
> </result>
>
> When the user clicks a column header ColumnX (=a hyperlink)
> the same file
> (XSL called inside) should reload with this table sorted with ColumnX
> sorted as first key.
> When another column (e.g. ColumnY) is clicked it is again
> reloaded, and now
> should be sorted with ColumnX as first key and ColumnY as second key.
> This should be possibly for all columns.
>
> As well the stylesheet should check if the <attributes>'s
> text() is a number
> or text and use the right 'data-type' attribute.
>
> Can anybody help or knows where to find ready made compley
> xsl sorters?
>
> Thanks Robert
> .............................................................
>  ROBERT SÖSEMANN  (robert.soesemann@xxxxxx)
>
>  schwärzlocherstr. 29/1 | 72070 tübingen
>  tel : 07071 / 400 880
>
>  icq# : 100 467 870
>  pgp-keys : www.webspace-journey.de/pgp.asc
> ..............................................................
> ..............
> ..........
>
>
>
>  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.