[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: usage of xsl:script

Subject: RE: usage of xsl:script
From: Anupam Agarwal <anupam.agarwal@xxxxxxxxxx>
Date: Wed, 6 Mar 2002 16:04:58 +0200
msxsl usage
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@xxxxxxxxxxxxxxxxxxxx]
Sent: March 06, 2002 3:50 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.