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

RE: help XML


xsl sort doesn t sort

I don't receive the error message anymore but still it doesn't sort. Below I copied a piece of my xml file. I would like to sort on name of the restaurant. Can you pls. help?

<xsl:template match="/">
  <html>
  <body style="background-color=#99CCFF;margin-left=3em;font-family:Arial,helvetica,sans-serif;font-size:12pt">
  <h2>My Restaurants Guide</h2>
   <xsl:apply-templates />
  </body>
  </html>
</xsl:template>
<xsl:template match="restaurant">
<p>   
 <xsl:apply-templates>
<xsl:sort select="name"/>
</xsl:apply-templates>
</p>  
</xsl:template>
<xsl:template match="name">



>From: "Michael Kay"
>To: "'Binh Thang'" ,,
>Subject: RE: help XML
>Date: Tue, 24 Feb 2004 23:39:39 -0000
>
>XSLT 1.0 allows xsl:sort as the first child of xsl:for-each or
>xsl:apply-templates. Where were you trying to use it?
>
>
>
>Michael Kay
>
>
>
>   _____
>
>From: Binh Thang [mailto:binhthang@h...]
>Sent: 24 February 2004 17:49
>To: hchatfield@u...; xml-dev@l...
>Subject: RE: help XML
>
>
>
>Thanx, for your help. But I do have another stupid question. I tried to sort
>the name of the restaurantss with but wherever I
>place the xsl:sort I receive the message "Keyword xsl:sort may not be used
>here." So, meaning I can not use sort in my xml?
>
>
>
>
>   _____
>
>Play online games with your friends with MSN Messenger
>
>
>----------------------------------------------------------------- The
>xml-dev list is sponsored by XML.org , an initiative of OASIS The list
>archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or
>unsubscribe from this list use the subscription manager:


MSN Search, for accurate results! http://g.msn.com/8HMAENNL/2728??PS=

  • Follow-Ups:

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.