File: Data.xml
title 1
author 1
publisher 1
1-11-11111-1
6.99
235
title 2
author 2
publisher 2
0 14 018967 X
12.99
12
File: Transform.xslt
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs" version="2.0">
as="xs:double" />
as="xs:double" />
select="subsequence($nodes, 1, count($nodes) idiv 2)" />
select="subsequence($nodes, (count($nodes) idiv 2) + 1)" />
select="if(number($first/min) lt number($second/min))
then $first/min
else $second/min" />
select="if(number($first/max) gt number($second/max))
then $first/max
else $second/max" />
INF
-INF
select="/booklist/book/price" />
Output:
6.99 12.99