This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:function
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 18 Jun 2002 14:11:58 +0100
- Subject: RE: [xsl] xsl:function
- Reply-to: xsl-list at lists dot mulberrytech dot com
Variable names need a "$" in front:
<xsl:result select="concat($theString,$theOtherString)"/>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Dominic Blythe
> Sent: 18 June 2002 12:00
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] xsl:function
>
>
> I just started using saxon 7.0 with XSLT 2.0 after a long
> absence from xsl. It implements the new xsl:function and
> xsl:result elements. My question is how come i dont get any
> return from my functions? Below are fragments of stylesheet
> showing the function and the function being called.
> Everything else works ok, no errors, etc, but there is no
> output from the function. As the function is now a standard
> xslt2 thing, i put this on this list rather than the saxon list.
>
> <xsl:function name="pcs:pad">
> <xsl:param name="theString"/>
> <xsl:param name="theOtherString"/>
> <xsl:result select="concat(theString,theOtherString)"/>
> </xsl:function>
>
> <xsl:value-of select="pcs:pad('this','that')"/>(<xsl:value-of
> select="string-length(./TITLE)"/>),<xsl:text/>
>
> ___________________________________________________________________
> Dominic Blythe
> Systems Developer
>
> Progressive Computer Systems Ltd
> Batley Business & Technology Centre
> Technology Drive
> Batley
> England
> WF17 6ER
>
> t: 01924 520310 f:01924 520301
> e: dblythe@progressive.uk.com
> w: www.progressive.uk.com
> ___________________________________________________________________
> This e-mail and any attached documents are confidential and
> for the attention of the intended recipient(s) only. If you
> are not the intended recipient(s), please notify the sender
> immediately; you must not read, copy, or use this e-mail and
> associated documents for any purpose, nor disclose it to any
> other person. The opinions, statements and thoughts expressed
> in this e-mail are not necessarily those of Progressive
> Computer Systems Ltd or the sender.
> ___________________________________________________________________
> /* It's nice to be important, but it's more important to be nice */
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list