| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Mark, there may be other issues working against you here, but i did notice a problem with your XSLT code that will def. prevent this from working in this line:
In XSLT, there is *no* "order-by" attribute for the xsl:for-each element. This is not how you perform sorting in XSLT. To sort in XSLT, use the xsl:sort element within an xsl:for-each or xsl:apply-templates instruction. Here is the specification for the xsl:sort element: <xsl:sort select="Expr" data-type="«text»|«number»|QName" order="«ascending»|«descending»" case-order="«upper-first»|«lower-first»" lang="lang-code"/> So your code should look something like this (not sure what that "+" symbol in your code is for): ... <xsl:for-each select="CATALOG/CD"> <xsl:sort select="ARTIST"/> ... I believe the default value for the data-type attribute is "text" which is prolly what you want. Todd Ditchendorf Software Engineer On Jan 1, 2007, at 6:00 PM, Mark Spidle wrote: I am queirying a server and getting a returned xml string within in a soap wrapper. I have done some searching and found that I can then sort the data using and XSL style sheet. |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Dashboard-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/email@hidden This email sent to email@hidden
| References: | |
| >Sorting XML using XSL loading the xml string (From: Mark Spidle <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.