XML Parser 4.0 Transform Error
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..

