Subject: Re: [xsl] Why does the addition of one (1) to a positiveInteger produce an integer? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 29 Aug 2010 16:43:48 -0400 |
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.
-- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Why does the addition of , Imsieke, Gerrit, le- | Thread | Re: [xsl] Why does the addition of , Michael Kay |
Re: [xsl] Why does the addition of , Imsieke, Gerrit, le- | Date | Re: [xsl] Why does the addition of , Michael Kay |
Month |