xsl-list
[Top] [All Lists]

Re: Sorting Problem

2003-10-16 08:51:57
Hi Puja,
It will be nice, if you can post the XML, with which
you are working. Also, please post the desired output,
specifying how you wish to do sorting.

Regarding question about xsl:for-each and xsl:template
match, these are basic syntax of XSL. 

Please look at the site --
http://www.w3schools.com/xsl/default.asp, &
http://www.w3schools.com/xpath/default.asp

for a nice beginner help on XSLT and XPath..

Dave Pawson's Q & A site is also quite useful --
http://www.dpawson.co.uk/xsl/sect2/sect21.html

Regards,
Mukul

--- puja thakral <puja_thakral(_at_)yahoo(_dot_)com> wrote:
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.

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.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.
Thanks guys,
Puja

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product
search
http://shopping.yahoo.com

 XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list



__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>