That's nothing to with max() and min(), but everything to do with mixed content.

The system is designed so that 

<number><whole-part>123</whole-part>.<fractional-part>456</fractional-part></number>

has an untyped string value of 123.456

Remember, the M in XML stands for Markup. Markup is an annotation to text that 
can be removed without changing the meaning.

Michael Kay
Saxonica

On 10 Feb 2014, at 07:14, Ihe Onwuka <[email protected]> wrote:

> max((<b>8<c>0</c></b>,<a>9</a>)) -> 80
> 
> Probably works as designed but it does raise the question of the
> utility of min and max in the presence of mixed content (i.e in the
> case where you expect 9 because it is > than 8) - or are all bets off
> if the content is mixed.
> 
> No - it is not an actual use case - I was actually trying to establish
> something else but stumbled across this in the process.
> _______________________________________________
> [email protected]
> http://x-query.com/mailman/listinfo/talk


_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to