Re: To pass parameters to function
<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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format