Re: [xslt] exslt function supported by xsltproc



From: "Daniel Veillard" <veillard@redhat.com>
> On Wed, Apr 16, 2003 at 10:08:10AM +0200, Frédéric Laurent wrote:
> > Registered Extension Functions:
> > {http://exslt.org/math}power
>
> [...]
>
> >     <xsl:call-template name="math:power">
> >       <xsl:with-param name="base" select="5" />
> >       <xsl:with-param name="power" select="2" />
> [...]
> > I don't understand what I have missed !
>
>   it's registered as a function, call-template is not the proper
> construct to call it then, it looks suspicious to use a template
> to call a math function, that doesn't look right at all.
>

The description of the power function includes an example use of the
template syntax:
http://exslt.org/math/functions/power/index.html

In order to make this work though you need to download
http://exslt.org/math/math.zip
which contains lots of examples of all the different maths functions,
including the wrappers for the functions to let you use templates if you
so desire.

Richard




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]