This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]