You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ekrem Aksoy <fo...@yahoo.com> on 2001/08/25 17:58:08 UTC
xsl:for-each order-by gives error
When i'm trying to execute the code below cocoon gives error :error found handling the request... any comments?
Thanx
<xsl:for-each select="book" order-by="+ title">
<tr bgcolor="#C0C0C0">
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="author"/></td>
</tr>
</xsl:for-each>
Re: xsl:for-each order-by gives error
Posted by Ekrem Aksoy <fo...@yahoo.com>.
I See. Thanx
----- Original Message -----
From: "Marcus Rueckert" <ru...@informatik.uni-rostock.de>
To: <co...@xml.apache.org>
Sent: Saturday, August 25, 2001 7:29 PM
Subject: Re: xsl:for-each order-by gives error
> hi,
>
> > Yes, it solves the problem, but i wonder why order-by doesn't work? any
> > comments?
>
> maybe this helps:
> http://www.w3.org/TR/xslt#sorting
>
> so long Marcus Rueckert
>
>
> --
> "damit wollte ich nur sagen
> manch einer mag dich anders als du bist
> aber bleib so weil zweimal gibs dich nicht"
> die oberste direktive (feat. Fanstar) - Mir reicht's nich'
(http://direktive.net)
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: xsl:for-each order-by gives error
Posted by Marcus Rueckert <ru...@informatik.uni-rostock.de>.
hi,
> Yes, it solves the problem, but i wonder why order-by doesn't work? any
> comments?
maybe this helps:
http://www.w3.org/TR/xslt#sorting
so long Marcus Rueckert
--
"damit wollte ich nur sagen
manch einer mag dich anders als du bist
aber bleib so weil zweimal gibs dich nicht"
die oberste direktive (feat. Fanstar) - Mir reicht's nich' (http://direktive.net)
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: xsl:for-each order-by gives error
Posted by Ekrem Aksoy <fo...@yahoo.com>.
Thanx Marcus,
Yes, it solves the problem, but i wonder why order-by doesn't work? any
comments?
----- Original Message -----
From: "Marcus Rueckert" <ru...@informatik.uni-rostock.de>
To: <co...@xml.apache.org>
Sent: Saturday, August 25, 2001 7:03 PM
Subject: Re: xsl:for-each order-by gives error
> hi
>
> try the following
> > <xsl:for-each select="book" order-by="+ title">
> <xsl:for-each select="book">
> <xsl:sort select="title" />
> > <tr bgcolor="#C0C0C0">
> > <td><xsl:value-of select="title"/></td>
> > <td><xsl:value-of select="author"/></td>
> > </tr>
> > </xsl:for-each>
>
> hope this helps.
>
> Marcus Rueckert
>
> --
> "damit wollte ich nur sagen
> manch einer mag dich anders als du bist
> aber bleib so weil zweimal gibs dich nicht"
> die oberste direktive (feat. Fanstar) - Mir reicht's nich'
(http://direktive.net)
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: xsl:for-each order-by gives error
Posted by Marcus Rueckert <ru...@informatik.uni-rostock.de>.
hi
try the following
> <xsl:for-each select="book" order-by="+ title">
<xsl:for-each select="book">
<xsl:sort select="title" />
> <tr bgcolor="#C0C0C0">
> <td><xsl:value-of select="title"/></td>
> <td><xsl:value-of select="author"/></td>
> </tr>
> </xsl:for-each>
hope this helps.
Marcus Rueckert
--
"damit wollte ich nur sagen
manch einer mag dich anders als du bist
aber bleib so weil zweimal gibs dich nicht"
die oberste direktive (feat. Fanstar) - Mir reicht's nich' (http://direktive.net)
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>