W3C home > Mailing lists > Public > www-xml-query-comments@w3.org > November 2001

XML Query Use Case XMP, query 10 again

From: Michael Dyck <MichaelDyck@shaw.ca>
Date: Sat, 10 Nov 2001 17:41:31 -0800
To: www-xml-query-comments@w3.org
Message-id: <3BEDD74B.112EA5E6@shaw.ca>
XML Query Use Cases
W3C Working Draft 08 June 2001

1.1.9.10 Use Case XMP, query 10

The Solution in XQuery passes a sequence of nodes (<price> elements) to the
'min' function. While this is compatible with xf:min's declared parameter-
type of anyType*, I don't think the result is defined, because the relation
"is less than" is not defined on nodes.

For a less dubious solution, replace
    { min($p) }
with
    <price>{ min(decimal($p/text())) }</price>

-Michael Dyck
Received on Saturday, 10 November 2001 20:42:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:14 UTC