[oXygen-user] XSL:minimum positive value
Lars Huttar
Sun Dec 23 20:05:19 CST 2007
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
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
>
More information about the oXygen-user
mailing list