Subject: [xsl] complicacy of sorting From: saigo@xxxxxxxxxxxxx (Evgenia Firsova) Date: Wed, 30 Oct 2002 08:40:11 +0300 (MSK) |
Hello. I write this: <xsl:for-each select="CountryList/Country"> <xsl:sort order="ascending" select="//MonthPriceCountryList/MonthPriceCountry[@CountryID=current()/@ID][ @IStationID=$isid]/@Price"/> <xsl:if test="position()=1"> <xsl:value-of select="//MonthPriceCountryList/MonthPriceCountry[@CountryID=current()/@ID][ @IStationID=$isid]/@Price"/> </xsl:if> </xsl:for-each> I need to get minimum Price from all Country (from CountryList). Each Country has attribute ID, and each MonthPriceCountry has attribute CountryID, which are the same values. For some reason sorting doesn't implements. Please, please, help me to find out the mistake. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xpath expression validity?, bibhaker . saran | Thread | [xsl] xsl to generate another xsl?, aruniima . chakrabar |
RE: [xsl] Role of XSLT?, Gregory Murphy | Date | [xsl] xsl to generate another xsl?, aruniima . chakrabar |
Month |