This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Chris Bayes tutorial: xsl:sort - sorting according to user selection


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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Chris Bayes
Sent: 01 June 2001 13:40
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] 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@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Tanzila
>Mohammad
>Sent: 01 June 2001 09:35
>To: xsl-list@lists.mulberrytech.com
>Subject: RE: [xsl] 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@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Chris Bayes
>Sent: 31 May 2001 17:56
>To: xsl-list@lists.mulberrytech.com
>Subject: RE: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]