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[. &gt; 0 and not(. &gt; //value[. &gt; 0])]"/>

In XPath 2.0, or the necessary extension function, you can use
   select="min(//value[. &gt; 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(. &gt; //value)]"/>

Plz reply ASAP.

Thanks
chandra.
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user




_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to