|
|
|
|
|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] How is memory allocated in recursive XSLT templates?
Subject: Re: [xsl] How is memory allocated in recursive XSLT templates?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 02 May 2007 21:12:14 +0200
|
PPS
Abel Braaksma wrote:
<xsl:function name="f:fac" as="xs:integer">
<xsl:param name="nr" as="xs:integer" />
<xsl:sequence select="if($nr = 0) then 1 else f:fac($nr -1) *
$nr" />
</xsl:function>
Hmm, on an SA processor, this should've better read (and be safer) as:
<xsl:function name="f:fac" as="xs:nonNegativeInteger">
<xsl:param name="nr" as="xs:nonNegativeInteger" />
<xsl:sequence select="if($nr = 0) then 1 else f:fac($nr -1) *
$nr" />
</xsl:function>
|
| |
© 2002-2008 SyncRO Soft Ltd. All rights reserved.
| Sitemap | Privacy Policy This website was created & generated with
<oXygen/> XML Editor |
|
|
|
|
|
|