This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:script
- From: Anupam Agarwal <anupam dot agarwal at amdocs dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 6 Mar 2002 16:59:43 +0200
- Subject: RE: [xsl] xsl:script
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@gmx.de]
Sent: March 06, 2002 4:53 PM
To: xsl-list@lists.mulberrytech.com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Laura Jenkins
> Sent: Wednesday, March 06, 2002 3:41 PM
> To: xsl-list@lists.mulberrytech.com
> 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@jenitennison.com>
> >Reply-To: xsl-list@lists.mulberrytech.com
> >To: "Alia Mikati" <Aliam@investcomholding.com>
> >CC: "XSL-List@lists.mulberrytech.com" <XSL-List@lists.mulberrytech.com>
> >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