|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
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
|

Cart








