This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: To pass parameters to function
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] To pass parameters to function
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 15 Feb 2001 12:23:53 GMT
- References: <3A87B3F2000C30A8@mail.tiscalinet.it> (added by postmaster@mail.tiscalinet.it)
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:variable name="sVal" select='XXXXX'/>
that selects the value of a child element called XXXXX. If you want the
string you need <xsl:variable name="sVal" select='"XXXXX"'/> note the
extra quotes.
<xsl:value-of select="xsl:alignLeft($sVal,10)"/>
you seem to have put your extension function in the xsl: namespace
that is not allowed you must put it in a different namespace (any will
do as long as its not th eXSL namespace.
Incidentally you can fairly easily pad your strings to 10 characters
without using an extension function.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list