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=
|