Functions defined in XSLT

<xsl:function name="math:factorial"
 xmlns:fib="http://www.example.com/math"
 exclude-result-prefixes="math">
  <xsl:param name="index" type="xsd:nonNegativeInteger"/>
  <xsl:result type="xsd:positiveInteger"
    select="if ($sentence eq 0) then 1
            else math:factorial(index - 1)/>
</xsl:function>

Previous | Next | Top | Cafe con Leche

Copyright 2002 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified February 1, 2002