Hi:
I am only able to sort numbers when I set the language to "cz". Otherwise, I
get the following error,
~/Sablot-0.51/Sablot/command/sabcmd cell.xsl a.xml a.html
Warning [code:464] [URI:file:cell.xsl] [line:1264] [node:element
'<xsl:for-each>']
unsupported language 'en'
Here's my code fragment.
1264 <xsl:for-each select="/CELL/MAX_FRQ">
1265 <xsl:sort select="./@load"
data-type="number"/>
1266 <TR style="">
1267 <TD style="" align="center">
1268 <xsl:apply-templates select="./@load"/>
1269 </TD>
1270 <TD style="" align="center">
1271 <xsl:apply-templates select="."/>
1272 </TD>
1273 </TR>
1274 </xsl:for-each>
Any release tips.
-Puneet
Puneet Grover
Infrastructure Manager
Circuit Semantics Inc.
2590 N. 1st St. Ste 301
San Jose CA 95131
(408) 953-0730 x 823
[EMAIL PROTECTED]
<http://www.CircuitSemantics.com>
> -----Original Message-----
> From: Tom Kaiser [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 15, 2001 2:52 AM
> To: Sablotron Mailing List
> Subject: Re: [Sab] xsl:sort support
>
>
>
> Hi,
> this was a bug which I just (hopefully) fixed in the CVS. The problem
> was that xsl:sort attributes were not interpreted as attribute value
> templates.
>
> Tom
>
> PS. Please contact [EMAIL PROTECTED] for CVS access if you don't
> have it.
>
> James Eberhardt wrote:
>
> > What I would try is to do some debugging.
> >
> > <xsl:for-each select="$selectedTable/product">
> > <xsl:value-of select="$order" />
> > <xsl:sort select="substring(@price,2)" data-type="number"
> > order="$order"/>
> > </xsl:for-each>
> >
> > This will output the value of $order. I suspect it is
> actually wrong. I
> > can't see where you are setting it, but you always have to
> keep in mind the
> > scope of variables in XSLT.
> >
> > Let me know how this goes.
> >
> > James
> >
> > -----Original Message-----
> > From: Andrew Vorobyov [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 14, 2001 1:50 PM
> > To: Sablotron Mailing List
> > Subject: RE: [Sab] xsl:sort support
> >
> > without the curly brackets I have the same result
> >
> >
>