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

xsl:sort problem

Subject: xsl:sort problem
From: "Danny Guindi" <Danny.Guindi@xxxxxxx>
Date: Mon, 8 Apr 2002 16:53:58 -0500
xsl sort problem
Hello everybody,

I am having a problem trying to use xsl:sort.  Here is the XSL code giving me problems

<xsl:template match='PEOPLE'>
     <xsl:for-each select='PERSON'>
          <TR>
               <xsl:apply-templates>
	        <xsl:sort select='LAST_NAME'/>
	   </xsl:apply-templates>
          </TR>
     </xsl:for-each>
</xsl:template>

<xsl:template match='PERSON'>
     <TD><xsl:value-of select='FIRST_NAME'/></TD>
     <TD><xsl:value-of select='LAST_NAME'/></TD>
     <TD><xsl:value-of select='BIRTH_DATE'/></TD>
</xsl:template>

When I try to load my XML file I get the following error:

Keyword xsl:apply-templates may not contain xsl:sort. 

I don't understand.  Everywhere I look it says that xsl:sort can be contained in xsl:for-each and xsl:apply-templates.  So, what's the problem?

Thanks for any help,

Danny 


 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.