Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XSLT Transformation, invalid class string >Thread Next - Re: XSLT Transformation, invalid class string Re: XSLT Transformation, invalid class stringTo: NULL Date: 11/3/2007 2:11:00 PM
Robbert wrote:
> <msxsl:script language="vb" implements-prefix="util">
> function GetDate(pubDate As String)
> Try
> Dim myDate as Date = CDate(pubDate)
> Return myDate.ToString("yyyyMMddHHmmss")
> Catch
>
> End Try
> end function
> </msxsl:script>
That looks like VB.NET to me and would work with the XSLT processors in
the .NET framework (e.g. XslCompiledTransform, XslTransform) but not with
> var xslt = new ActiveXObject("Msxml2.XSLTemplate.3.0");
MSXML that you try to use here.
So you need to decide which XSLT processor you want to use, if you use
.NET then your script has access to .NET framework APIs/objects/methods
but if you want to use MSXML then your script has only access to classic
VBScript and its functions.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
