[导入]XPath 1.0 求最大/最小值

<CalendarDrawItems>
<Item>
<Rect X="0" Y="0" H="215" W="174"/>
</Item>
<Item>
<Rect X="-5" Y="0" H="215" W="174"/>
</Item>
<Item>
<Rect X="50" Y="0" H="215" W="174"/>
</Item>
...

最小值:
//Item/Rect/@X[not(//Item/Rect/@X < .)]

最大值:
//Item/Rect/@X[not(//Item/Rect/@X > .)]
文章来源:http://www.gins.cn/blog/post/171.html

posted on 2007-08-01 13:51  ginseng  阅读(501)  评论(1编辑  收藏  举报

导航