XML Parser 4.0 Transform Error

Hi Friends,
I need a serious help from you people and that too quick.

I have a XSL file and an XML file. we need to transform this xsl file and get the html output.. And our requirement is it has to be done using MSXML4.0 version

Earlier version we used is MSXML3.0, in that it is working fine.. but when we tried with new version we faced problems:

Original xsl file has the stylesheet element like this...

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns:html="http://www.w3.org/TR/REC-html40"
language="JScript">

Actually, we loaded both the xml and xsl file using server.createobject("MSXML2.DOMDocument.3.0) and tried to transform the xsl file.. it works fine.. we got the output..

but when we used MSXML2.DOMDocument.4.0 and tried to transform we got the errors like the following:
1) "http://www.w3.org/TR/WD-xsl" namespace is no longer valid with this version of MSXML.
Soln: So we changed the namespace to xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2) Then it says that language attribute is invalid in stylesheet element.
Note: We used language attribute because we used <xsl:script> element in xsl file..
Soln: So we introduced a namespace xmlns:msxsl="urn:schemas-microsoft-com:xslt" in <xsl:stylesheet> element and changed <xsl:script> element like <msxml:script lanugage="JScript">
3) It says that Required attribute "version" is missing
Soln: So we introduced version attribute in <xsl:stylesheet> element and set it to "1.0"

All these changes we did but again it throws the following error...

Error Type:
msxml4.dll (0x80004005)
Expected token ']' found '$'. GuideTaskField[SectionName = 'CON_DATA' -->$<--and$ not(DisplayFormatMethod = 'Recurrence' $and$ DefaultValue = '') $and$ not(DisplayFormatMethod = 'CheckAndAmount' $and$ DefaultValue = '')]
/ASPPAGES/sfoutpage.asp, line 20

Please find attached the XSL and XML file below.

Also find the Client code below
<%@ Language="vbscript"%>

<%

dim xmldoc
dim xsldoc
dim bLoaded
Response.Buffer = true

set xmldoc = server.createobject("MSXML2.DOMDocument.4.0")

xmldoc.async = "false"
xmldoc.load("C:\outputmain.xml")

set xsldoc = server.createobject("MSXML2.DOMDocument.4.0")
xsldoc.async = "false"
xsldoc.load("C:\outputmain.xsl")

Response.write(xmldoc.transformnode(xsldoc))

%>
So please help us to solve this issue.. and this we need to fix it immediately..
[2737 byte] By [nvvn] at [2007-11-19 3:32:14]
# 1 Re: XML Parser 4.0 Transform Error
"$and$"
?? is everywhere in your xpaths.
does a simple "and" not work?
jkmyoung at 2007-11-10 3:27:52 >
# 2 Re: XML Parser 4.0 Transform Error
Thats correct i've replace $and$ to 'and' and the same way i've replaced the $or$ to or. like this i dont know what are the other changed to be made to that file to make it work with MSXML 4.0.
I tried to get some converter to do that but couldnt fine one yet. if you have any converter tool please let us know.

I've posted another thread with the subject "URGENT: Please Transform the following XSL,XML" which holds the XML and XSL file to be transformed.

"Thanks & Regards"
XML Learning Team.
nvvn at 2007-11-10 3:28:52 >