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

[XSL] Sorting and Displaying Data

Subject: [XSL] Sorting and Displaying Data
From: "andy rosbrook" <andy_rosbrook@xxxxxxxxxxx>
Date: Sun, 04 Sep 2005 20:52:23 +0000
javascript sort div
Hi all

This problem i am having is one of those where i could be really close or a mile off :), here goes anyway.

I have database query results stored in an xml file eg.

<query>

<name>some query</name>

       <result>
             <docname>some document</docname>
             <doclocation>c:\blah\something.pdf</doclocation>
             <category>jobs</category>
       </result>

       <result>
             <docname>some document</docname>
             <doclocation>c:\blah\something.pdf</doclocation>
             <category>jobs</category>
       </result>

</query>

How would i go about creating a hyperlink that would sort the results by category and display them. I've tried to create a template to match 'query' which sorts the results by category using xsl-sort and then displays them in a div area, this div is hidden upon loading but is accessed through a javascript function which shows the div area. However it never seems to work so i wondering if this is the best way to do this? Anybody got an ideas on how i could do this?

thanks
andy

_________________________________________________________________
Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk


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.