xsl-list
[Top] [All Lists]

variable problem

2006-01-20 21:47:38
When I try to convert a variable to and integer i.e.
<xsl:variable name="gap" as="xs:integer" select="@end - @begin"/>
<xsl:for-each select="1 to $gap">
...
</xsl:for-each>
I get the error:
XPTY0004: Required type of second operand of 'to' is xs:integer; supplied value has xs:double

Why do I get this error and how can it be resolved?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>