Subject: RE: [xsl] Chris Bayes tutorial: xsl:sort - sorting according to user selection From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 1 Jun 2001 09:35:25 +0100 |
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: [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Output a link in a transf, Michael Kay | Thread | RE: [xsl] Chris Bayes tutorial: xsl, Chris Bayes |
RE: [xsl] Output a link in a transf, Michael Kay | Date | RE: [xsl] XSL Sites, DPawson |
Month |