I am intermittently getting this error from the grid and would like to know if anyone knows what might be causing this. I'm using the latest release of the UltraWebGrid version 8.3.20083.1009.
ERROR
msxml3.dll: The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.function igtbl_XSLTProcessor(xsltURL){ if(!xsltURL) return null; if(ig_csom.IsIE) { var xslt=ig_createActiveXFromProgIDs(["MSXML2.FreeThreadedDOMDocument","Microsoft.FreeThreadedXMLDOM"]); xslt.async=false; xslt.load(xsltURL); var xslTemplate=new ActiveXObject("MSXML2.XSLTemplate"); xslTemplate.stylesheet=xslt; // ERROR Occurs Here. this.Processor=xslTemplate.createProcessor(); } else { var xmlResp=new DOMParser(); var xmlHttp=new XMLHttpRequest(); xmlHttp.open("GET",xsltURL,false); xmlHttp.send(null); this.Processor=new XSLTProcessor(); this.Processor.importStylesheet(xmlResp.parseFromString(xmlHttp.responseText,"text/xml")); }}
Yes - that's how it should look. They must have corrected the file in the more recent versions.
Thanks for the tip. In the version I have (8.3.20083.1009) I have the following at the top of the file. Does this look ok?
<?xml version="1.0"?><!-- Infragistics UltraWebGrid Script Version 8.3.20083.1009Copyright (c) 2001-2008 Infragistics, Inc. All Rights Reserved.--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output omit-xml-declaration="yes" method="html"/>
I'm not sure about versions 8.3.x - but with older (8.1.x) versions, the ig_WebGrid.xslt file is indeed malformed. The following "comment" precedes the <?xml version="1.0"?> declaration and must be stripped off:
/** ig_WebGrid.xslt* Version 8.1.20081.1000* Copyright(c) 2001-2008 Infragistics, Inc. All Rights Reserved.*/
Hello,
I believe in cases like that it is best to contact Developer Support directly, as I am not sure this is something we are going to be able to resolve in peer-to-peer forums. Developer Support can be reached via the following link:
http://es.infragistics.com/Support/#Overview
I also just tried using the javascript in this post (http://forums.infragistics.com/forums/p/19915/72390.aspx#72390) but I get the same error. It seems like there is something wrong with the ig_WebGrid.xslt file. I've been trying to make this work for a while now and what I really don't get is why it seems to work fine for a while and then I'll reload the page and get this error.