[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|