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

RE: Chris Bayes tutorial: xsl:sort - sorting according

Subject: RE: Chris Bayes tutorial: xsl:sort - sorting according to user selection
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 1 Jun 2001 16:01:01 +0100
xsl form submit
Chris,

I made the necessary ammendments and when you click on the columns the value
of column param changes (as expected) but the sort is not executed - any
suggestions?

Tanz

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Chris Bayes
Sent: 01 June 2001 13:40
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Chris Bayes tutorial: xsl:sort - sorting according to
user selection


Tanz,
Yeh something like that should do it. But you need to put a name on the
<form name="xxx" then refer to it as xxx.column.value='name';xxx.submit()

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tanzila
>Mohammad
>Sent: 01 June 2001 09:35
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: RE:  Chris Bayes tutorial: xsl:sort - sorting according to
>user selection
>
>
>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
>
>


 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.