OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] help XML

[ Lists Home | Date Index | Thread Index ]

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: [xml-dev] 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@hotmail.com]
>Sent: 24 February 2004 17:49
>To: hchatfield@urbanmarket.com; xml-dev@lists.xml.org
>Subject: RE: [xml-dev] 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! click here



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS