RE: [xsl] xsl:script

Subject: RE: [xsl] xsl:script
From: Anupam Agarwal <anupam.agarwal@xxxxxxxxxx>
Date: Wed, 6 Mar 2002 16:59:43 +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: Julian Reschke [mailto:julian.reschke@xxxxxx]
Sent: March 06, 2002 4:53 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] xsl:script


Yes,

but "http://www.w3.org/TR/WD-xsl"; is deprecated and proprietary.

So better stick with XSLT, and when using MSXML, use the proper vendor
extensions (you can find them in the SDK under msxsl:script).

...or try to avoid script completely :-)

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Laura Jenkins
> Sent: Wednesday, March 06, 2002 3:41 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] xsl:script
>
>
> Hi  Alia
> You can start working with the following declaration
> _________________________________________________________
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
> <xsl:script></xsl:script>
> <xsl:template match="/">
> -- Your XSL Body -----
> </xsl:template>
> </xsl:stylesheet>
> ____________________________________________________
>
> as Jeni says , xsl:script may not be used in namespace
> http://www.w3.org/1999/XSL/Transform
> HTH
> ---Laura---
> >From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >To: "Alia Mikati" <Aliam@xxxxxxxxxxxxxxxxxxxx>
> >CC: "XSL-List@xxxxxxxxxxxxxxxxxxxxxx" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
> >Subject: Re: [xsl] xsl:script
> >Date: Wed, 6 Mar 2002 14:07:36 +0000
> >
> >Hi Alia,
> >
> > > 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?
> >
> >xsl:script comes from the XSLT 1.1 Working Draft. XSLT 1.1 isn't ever
> >going to be a Recommendation, so there are few processors that
> >implement it, two exceptions being Saxon and jd.xslt.
> >
> >MSXML3 and MSXML4 implement XSLT 1.0. Both have something very similar
> >to xsl:script, namely msxsl:script (in the namespace
> >urn:schemas-microsoft-com:xslt).
> >
> >So you should either use msxsl:script, or switch to a processor that
> >supports xsl:script.
> >
> >Cheers,
> >
> >Jeni
> >
> >---
> >Jeni Tennison
> >http://www.jenitennison.com/
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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