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


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

-----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:00
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Chris Bayes tutorial: xsl:sort - sorting according to
user selection


Tanz,
No there shouldn't be.
I just tried it here and it works fine.
When you say you "ran" the xsl against the xml what do you mean?
This is a clientside tutorial so the xml/xsl must be available in the
browser. If you produce html and open that in the browser it won't work of
course.

Ciao Chris

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

>Chris,
>
>I am going through your 'sort columns' tutorial. I am omitting the css
>references in the xsl so that the following is used:
>  <td onClick="sort('name');">Name</td>
>  <td onclick="sort('origin');">Origin</td>
>  <td onclick="sort('type');">Type</td>
>  <td onclick="sort('quality');">Quality</td>
>
>and hence there is only a reference to the javascript and filter.js file
>within the "head" html tags.
>
>I ran the xsl against the tutorial xml and the beer table html was formed.
>However, the onclick function was not working - was there something in the
>css file that was required?
>
>Tanz
>
>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Chris Bayes
>Sent: 29 May 2001 15:59
>To: xsl-list@lists.mulberrytech.com
>Subject: RE: [xsl] xsl:sort - sorting according to user selection
>
>
>Bryan,
>You said
>>I would like to do it by using my single xsl file and getting it to call
>>>itself (when a heading is clicked) and to use some kind of parameter that
>>>will tell it how to do the sort.
>>>Any ideas?
>
>If you read the tutorial you will see that it does exactly what you asked.
>
>>I am not using a single fixed XML file - the XML is being streamed to me,
>>and I decide what XML comes to me by specifying name / value parameters in
>>an HTML form. Your tutorial employs an XML file...
>
>xml is xml it doesn't matter where it comes from.
>
>You could of course do a round trip to the server to sort the
>columns if you
>want and you would do that by passing params to the stylesheet as i have
>shown in the tutorial.
>
>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 Bryan Tulloch
>>Sent: 29 May 2001 14:07
>>To: 'xsl-list@lists.mulberrytech.com'
>>Subject: RE: [xsl] xsl:sort - sorting according to user selection
>>
>>
>>
>>Chris,
>>
>>I am not using a single fixed XML file - the XML is being streamed to me,
>>and I decide what XML comes to me by specifying name / value parameters in
>>an HTML form. Your tutorial employs an XML file...
>>
>>Bryan
>>
>>-----Original Message-----
>>From: Chris Bayes [mailto:Chris@Bayes.co.uk]
>>Sent: Tuesday, May 29, 2001 1:13 PM
>>To: xsl-list@lists.mulberrytech.com
>>Subject: RE: [xsl] xsl:sort - sorting according to user selection
>>
>>
>>Btyan,
>>http://www.bayes.co.uk/xml/index.xml?/xml/tutorial/filtering/filter.xml
>>
>>Ciao Chris
>>
>>XML/XSL Portal
>>http://www.bayes.co.uk/xml
>>
>>>I have the following problem.
>>>I have an xsl file that displays a table. I want each column
>>heading in the
>>>table to generate a sort ie if the user clicks on heading 1, the data for
>>>the whole table will be sorted according to column 1, if heading
>>2 then the
>>>whole table is sorted according to column 2 etc.
>>>Obviously, I could do this by having each column linked to its
>>own xsl file
>>>which would perform the sort. However, rather than using multiple
>>>xsl files,
>>>I would like to do it by using my single xsl file and getting it to call
>>>itself (when a heading is clicked) and to use some kind of parameter that
>>>will tell it how to do the sort.
>>>Any ideas?
>>>
>>> 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
>
>
>
>
> 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]