xsl-list
[Top] [All Lists]

[xsl] Why does the addition of one (1) to a positiveInteger produce an integer?

2010-08-29 14:43:43
Hi Folks,

I have a function that has a parameter with a xs:positiveInteger datatype. 
Within the function I add one (1) to the parameter:

<xsl:function name="f:iter">
    <xsl:param name="count" as="xs:positiveInteger" />

    ...

    <xsl:sequence select="f:iter($count + 1)" />

</xsl:function>

When I run this I get an error, "The argument to f:iter is xs:positiveInteger, 
the supplied value is xs:integer"

What is the rationale for this? After all, if I add one (1) to any 
positiveInteger the result must be a positiveInteger.

/Roger

--~------------------------------------------------------------------
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>