[Mono-dev] XPath problem

Atsushi Eno atsushi at ximian.com
Mon Mar 13 00:44:51 EST 2006


fedotenko wrote:
> Im using XslTransform-class to transform information in on a XML-document
> with a XSL-stylesheet like this:
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
>  <xsl:template match="/">
>   <xsl:for-each select="matches/players/player">
>    <xsl:sort select="count(/matches/match/score[@goal=current()/@nr]) +
> count(/matches/match/score[@ass=current()/@nr])" data-type="number"
> order="descending" />
>    <xsl:sort select="count(/matches/match/score[@goal=current()/@nr])"
> data-type="number" order="descending" />
>    <xsl:sort select="count(/matches/match/score[@ass=current()/@nr])"
> data-type="number" order="descending" />
> ...
> The problem is that the sort gets ignored. It works on the .net platform
> with the same code. Am I doing something wrong or is this not supposed to
> work on mono yet or is it possible a bug?

There is no limitation on our XPath implementation and there are
many OASIS suite tests on sorting that pass under mono. Please file
a bug with your reproducible stylesheet and input sources.

Atsushi Eno

More information about the Mono-devel-list mailing list