Subject: [xsl] RE: usage of xsl:script From: Anupam Agarwal <anupam.agarwal@xxxxxxxxxx> Date: Wed, 6 Mar 2002 16:04:58 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:script, Anupam Agarwal | Thread | [xsl] Using Parameters for HTML Att, Hellstern, Manny |
[xsl] xsl:script, Alia Mikati | Date | Re: [xsl] xsl:script, Jeni Tennison |
Month |