Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: group and find relative Min value

From: "Ghena" <lastminutesud@-----.--->
To: NULL
Date: 6/3/2006 7:09:00 AM

Hi,
I improved it in this way:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:output method="html"/>
<xsl:key name="RouterList" match="Router" use="Supplier"/>
<!-- Template for our root rule -->
<xsl:template match="RouterList">
<xsl:for-each
select="//Router[generate-id(.)=generate-id(key('RouterList',Supplier))]">
		<xsl:sort select="Supplier" order="ascending"/>
		<xsl:variable name="ok_op" select="Supplier" />
    	<div style="background-color:#f2f2f2;"><img border="1"
src="http://www.miosito.com/images/logos/{(Supplier)}.gif"></img><br></br>(<xsl:value-of
select="$ok_op"/>)</div>
      <xsl:value-of
select="//Router[Supplier=$ok_op]/GroupList/Group/OutwardList/Outward/Price/Amount/text()"/>

		<br/><br/>
	</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

In this way:

 <xsl:value-of
select="//Router[Supplier=$ok_op]/GroupList/Group/OutwardList/Outward/Price/Amount/text()"/>

I found the Price/Amount relative for each supplier But I didnt found
the min value ofr the supplier.....

I need some advice...
Thanks a lot.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent