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

RE: Sorting Problem

Subject: RE: Sorting Problem
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Thu, 16 Oct 2003 09:30:51 -0600
cheaptickets.com
> From: puja thakral [mailto:puja_thakral@xxxxxxxxx]
> Sent: Thursday, October 16, 2003 9:07 AM
> Subject:  Sorting Problem
> 
> 
> Hi everyone,
> I'm also having sorting problems.I'm using
> 
> <xsl:for-each select="dataroot/GrantNet">
> <xsl:sort select="@fldCatID"/>
> </xsl:for-each>
> 
> this code to sort my items by fldCatID but it doesn't
> seems to work.

Most likely, @fldCatID is not present in your current context (it needs to
be an attribute of the GrantNet node), but without seeing any sample XML
this is purely a guess.

> I also have one more question.I'm still learning
> xml/xsl.What is the difference between using
> <xsl:for-each select> and <xsl:template match>
> I tried using both of them but some functions seem to
> work in one and not in another.Can someone pls clarify
> the basic question.

This article explains it better than I ever could:

http://www-106.ibm.com/developerworks/xml/library/x-xdpshpul.html?open&l=976
,t=gr

>I'm sorry if u find this question
> too dumb but there is noone working on this in my
> office whom I can ask?Also I could not find a
> convincing answer by searching on Google.

No question is too dumb (OK, maybe a few . . .), but with all due respect,
you can't have looked very hard.  Just typing 'xslt' in Google returns a
staggering number of results.  But here's a few links to start:

http://www.w3.org/Style/XSL/ (W3 home page for XSL/XSLT)
http://www.dpawson.co.uk/xsl/xslfaq.html (XSL/XSLT FAQ, hosted by Dave
Pawson)
http://www.xslt.com/ (apparently under new management; still lots o' links)

hth,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.357.3548 |
| cheap tickets, part of trip network                fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400           englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.com/ |

 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.