You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alex Muc <al...@utoronto.ca> on 2000/04/14 06:24:51 UTC
XSL Sorting and Cocoon 1.7.2
Has anybody been having difficulty using the sorting functionality in an XSL
page? For example:
<xsl:apply-templates select="item">
<xsl:sort select="title" order="ascending"/>
</xsl:applyt-templates>
It was working fine for me about a week ago, but now it doesn't work anymore.
I don't know exactly when it stopped working, but the only thing that I have
changed is upgrading from cocoon 1.7 to 1.7.2
Thanks.
Alex.
Re: XSL Sorting and Cocoon 1.7.2
Posted by Brett McLaughlin <br...@earthlink.net>.
Alex Muc wrote:
>
> Uhh, yeah, that was just a type in the email. It wouldn't even compile if there
> was a typo. Right?
Compile? No, a stylesheet isn't compiled ... it would just throw up
over your code at runtime ;-) Just checking. Check Donald's
suggestion: what Xalan version are you running?
Also try doing the transform from the command line:
$ java org.apache.xalan.xslt.Process -IN [XML document] \
-XSL [XSL stylesheet] \
-OUT [output file]
If you still get the same results, it isn't a Cocooon bug.
-Brett
>
> Brett McLaughlin wrote:
>
> > Alex Muc wrote:
> > >
> > > Has anybody been having difficulty using the sorting functionality in an XSL
> > > page? For example:
> > > <xsl:apply-templates select="item">
> > > <xsl:sort select="title" order="ascending"/>
> > > </xsl:applyt-templates>
> >
> > -------------^
> >
> > I assume you really have </xsl:apply-templates? ? I know that sounds
> > silly, but just checking...
> >
> > -brett
> >
> > >
> > > It was working fine for me about a week ago, but now it doesn't work anymore.
> > > I don't know exactly when it stopped working, but the only thing that I have
> > > changed is upgrading from cocoon 1.7 to 1.7.2
> > >
> > > Thanks.
> > > Alex.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: XSL Sorting and Cocoon 1.7.2
Posted by Alex Muc <al...@utoronto.ca>.
Uhh, yeah, that was just a type in the email. It wouldn't even compile if there
was a typo. Right?
Brett McLaughlin wrote:
> Alex Muc wrote:
> >
> > Has anybody been having difficulty using the sorting functionality in an XSL
> > page? For example:
> > <xsl:apply-templates select="item">
> > <xsl:sort select="title" order="ascending"/>
> > </xsl:applyt-templates>
>
> -------------^
>
> I assume you really have </xsl:apply-templates? ? I know that sounds
> silly, but just checking...
>
> -brett
>
> >
> > It was working fine for me about a week ago, but now it doesn't work anymore.
> > I don't know exactly when it stopped working, but the only thing that I have
> > changed is upgrading from cocoon 1.7 to 1.7.2
> >
> > Thanks.
> > Alex.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: XSL Sorting and Cocoon 1.7.2
Posted by Brett McLaughlin <br...@earthlink.net>.
Alex Muc wrote:
>
> Has anybody been having difficulty using the sorting functionality in an XSL
> page? For example:
> <xsl:apply-templates select="item">
> <xsl:sort select="title" order="ascending"/>
> </xsl:applyt-templates>
-------------^
I assume you really have </xsl:apply-templates? ? I know that sounds
silly, but just checking...
-brett
>
> It was working fine for me about a week ago, but now it doesn't work anymore.
> I don't know exactly when it stopped working, but the only thing that I have
> changed is upgrading from cocoon 1.7 to 1.7.2
>
> Thanks.
> Alex.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: XSL Sorting and Cocoon 1.7.2
Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 14 Apr 2000, Alex Muc wrote:
> Has anybody been having difficulty using the sorting functionality in an XSL
> page? For example:
> <xsl:apply-templates select="item">
> <xsl:sort select="title" order="ascending"/>
> </xsl:applyt-templates>
>
> It was working fine for me about a week ago, but now it doesn't work anymore.
> I don't know exactly when it stopped working, but the only thing that I have
> changed is upgrading from cocoon 1.7 to 1.7.2
The cocoon version should be mostly irrelevant - what matters is the XSLT
processor. I reckon you're using Xalan - make sure you're using version
1.0.0 or higher.
- donald