Hello, everyone:
I have a simple question:  how do I cast a quotient
of two numbers (both retrieved from an XML file) as
an integer in a 'for' loop?
  let maxValue := doc("test1.xml")/data/maxValue
  let minValue  := doc("test1.xml")/data/minValue
  let delta         := doc("test1.xml")/data/delta
  (: 'maxCount' is the upper limit in a 'for' loop :)
  let maxCount := floor(($maxValue - $minValue)/$delta)
  for $index in 0 to $maxCount
  return $index
The previous code results in the following error message:
Error on line 54
  Required type of second operand of 'to' is xs:integer;
supplied value is xs:double
I noticed the "define variable" construct, but how can
this be used in conjunction with the preceding code?
Suggestions are welcome...

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software