Subject: Re: [xsl] complicacy of sorting From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Sun, 03 Nov 2002 22:22:20 +0100 |
<xsl:for-each select="CountryList/Country"> <xsl:sort select="key('MPCs', @ID)[@IStationID = $isid]/@Price" order="ascending"/> <xsl:if test="position() = 1"> <xsl:value-of select="key('MPCs', @ID)[@IStationID = $isid]/@Price"/> </xsl:if> </xsl:for-each>
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to view data in tabul, Mohamed Abdel Hamid | Thread | Re: [xsl] complicacy of sorting, Evgenia Firsova |
Re: [xsl] Calling function with tex, David Carlisle | Date | Re: [xsl] XSL Decending Order Query, Mitch Amiano |
Month |