wrong error message, and wrong handling
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
the following Xquery:
"/report/field/@value / 19"
on the following document:
<report name="product">
<field name="version" docType="SCP" value="1"/>
</report>
leads that:
C:\export\saxon-7.7>java -cp ./saxon7.jar net.sf.saxon.
Query -s test.xml test3.x
q
Syntax error at line 1:
Required type of first operand of '/' is node; supplied
value has type xs:double
Query processing failed
First, I thing the error message is inverted. Second, the
node should be automatically atomized, according to the
specs. And "1" should be valid as first operand for
division operator.
Logged In: YES
user_id=251681
PLEASE use the correct route for reporting bugs. Didn't you
see the splash text on the screen saying don't submit bugs
here? This is for confirmed bugs only, if everyone who
thinks they have found a bug used this area it would become
hopelessly cluttered.
There is a minor mistake in the error message, it should be
referring to the second operand of "/". But the main error
is yours: the division operator is not "/", but "div".
Michael Kay