ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[exslt] date.js with .Net System.Xml.Xsl
by Bruce Krautbauer other posts by this author
Mar 20 2002 9:15PM messages near this date
RE: [exslt] RE: date.msxsl.xsl | [exslt] NUMBERING ELEMENTS
Hi all,

Has anyone else run into problems with JavaScript and the .Net System.Xml.Xsl class?  If I i
mport date.msxsl.xsl and try to compile it using the .Net System.Xml.Xsl classes, for exampl
e when debugging with ActiveState's Visual XSLT Visual Studio.Net add-in, I get the followin
g error (note, you have to get by a previous error by changing the language attribute from '
ECMSScript' to 'JavaScript' first):

Exception Starting XSLTransform :System.Xml.Xsl.XsltException: Script compile errors:
file:///C:/BothTrends/date.msxsl.xsl(23,1) : error JS1002: Syntax error
file:///C:/BothTrends/date.msxsl.xsl(25,35) : error JS1197: Too many errors. The file might 
not be a JScript .NET file

I seem to have boiled the problem down to Array assignments, i.e., the following stylesheet 
generates the same error at the my_array[0]=1 line:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:user="urn:my-scripts"> 

  <msxsl:script language="Javascript" implements-prefix="user"> 
     <![CDATA[
	var my_array = new Array();
	my_array[0] = 1;
      ]]> 
   </msxsl:script> 
</xsl:stylesheet> 

I have some applications that use various EXSLT functions, including date:seconds(), and wou
ld really like to be able to do this work in my new environment.  Any suggestions?

Thanks,
Bruce

_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved