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]
Other format: [Raw text]

RE: usage of xsl:script


Hi 
u can use it as follows 


in namespace declaration 

<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xslscript="http://mycompany.com/mynamespace";  version="1.0">	


Declare ur script this way

<msxsl:script language="vbScript" implements-prefix="xslscript"> 
	Function ConvertDate(currDate) 
		MyDate=CDate(currDate) 
		ConvertDate=CStr(MyDate) 
	End Function
</msxsl:script>


call the function in this way

<xsl:value-of select="xslscript:ConvertDate(.)"/>

thanks and regards
Anupam Agarwal
+357-9-9821395
+357-25-845278
--=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- 
There is no pleasure in having nothing to 
do ; the fun is in having lots to do and you do nothing !   
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--  



-----Original Message-----
From: Alia Mikati [mailto:Aliam@investcomholding.com]
Sent: March 06, 2002 3:50 PM
To: XSL-List@lists.mulberrytech.com
Subject: 


hi
I get this error msg in my xsl styelsheet:
Keyword xsl:script may not be used in namespace 
http://www.w3.org/1999/XSL/Transform. 
I'm using IE5 and I installed Microsoft parser to update the built-in 
parser of IE. And I'm using vbscript.
What should I do so that I can use xsl:script?
Thx a lot



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 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]