|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Chris Bayes tutorial: xsl:sort - sorting according
Chris,
I am trying to implement your "roundtrip to the server" suggestion as
follows:
............ (remains the same as in tutorial)
<html>
<body>
** <form>
**<input type="hidden" name="column"/>
<center>
<h1>Beers</h1>
<table width="80%" bgcolor="#FF8800">
<tr>
** <td
onclick="form.column.value='name';form.submit()">Name</td>
** <td
onclick="form.column.value='origin';form.submit()">Origin</td>
** <td
onclick="form.column.value='type';form.submit()">Type</td>
** <td
onclick="form.column.value='quality';form.submit()">Quality</td>
</tr>
<xsl:if test="$column='name'">
<xsl:apply-templates select="beer">
<xsl:sort select="name" order="ascending" />
</xsl:apply-templates>
...........(remains the same as in tutorial)
** </form>
</body>
</html>
........... (remains the same as in tutorial)
**Is this what you meant?
Thanks.
Tanz
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Chris Bayes
Sent: 31 May 2001 17:56
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Chris Bayes tutorial: xsl:sort - sorting according to
user selection
Tanz,
Not on the client using xml/xsl.
You can on the client using javascript but i haven't seen any good
implementations of this.
You can on the client using databound controls.
You could roundtrip to the server to sort but it is slow. To do it you just
add a <form... and a hidden field <input type="hidden" name="column" then
change the onclick="form.column.value='column';form.submit()"
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>Thanks Chris.
>
>The tutorial example works fine now.
>
>However, in the application which is being written the xml is produced from
>a database query then Java code uses the xalan processor to convert the xml
>to html using xslt. It is this produced html file which I need the actual
>sort on, is there a way that this can be done by using a xalan processor.
>
>Tanz
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








