[导入]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
<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