[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
|