
Hi, i am using the following XML, i wanted to print small positive value <a> <value>34</value> </a> <a> <value>23</value> </a> <a> <value>56</value> </a> <a> <value> -10 </value> </a> </a> i am using the followng XPath Expression for printing small value but it returns " -10 " <xsl:value-of select="//value[not(. > //value)]"/> Plz reply ASAP. Thanks chandra.

Hello, This kind of question belongs more properly to an XSLT list, such as http://www.mulberrytech.com/xsl/xsl-list/ But you can try the following in XPath 1.0: <xsl:value-of select="//value[. > 0 and not(. > //value[. > 0])]"/> In XPath 2.0, or the necessary extension function, you can use select="min(//value[. > 0])" Lars On 12/23/2007 1:11 AM, chandra shaker wrote:
Hi,
i am using the following XML, i wanted to print small positive value <a> <value>34</value> </a> <a> <value>23</value> </a> <a> <value>56</value> </a> <a> <value> -10 </value> </a> </a>
i am using the followng XPath Expression for printing small value but it returns " -10 "
<xsl:value-of select="//value[not(. > //value)]"/>
Plz reply ASAP.
Thanks chandra. _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
chandra shaker
-
Lars Huttar