Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / The stylesheet does not contain a document element

The stylesheet does not contain a document element

New Discussion
Aaron
Aaron asked on Feb 16, 2009 9:09 PM

 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"));
    }
}

Sign In to post a reply

Replies

  • 0
    [Infragistics] Rumen Stankov
    [Infragistics] Rumen Stankov answered on Jan 16, 2009 12:59 PM

    Hello,

    I personally have not seen something like that. I also searched the forums/bug reports for additional info – again, no luck. I believe in cases like this it is best to contact Developer Support directly – they can be reached via the following link:

    http://www.infragistics.com/Support/default.aspx#Overview

    HTH,

     

  • 0
    Wade Beasley
    Wade Beasley answered on Jan 21, 2009 1:00 AM

    FYI, there is a hotfix to download that may help.  The current version number should be:  8.3.20083.2021

    • 0
      Aaron
      Aaron answered on Feb 14, 2009 2:29 AM

       I believe that I can't get to the hotfixes you refer to as I am using an evaluation. I have been trying to make an evalution work because I am seriously considering purchasing the asp.net package. I continue to have strange javascript problems. I am now using the web.config file to direct the controls to get their javascript from a directory in my source. I copied the CLR 3.5 javascript directory over because there was an update to the ig_WebGrid.js in this thead;http://forums.infragistics.com/forums/p/18367/66804.aspx#66804.

      It seems as if I use the local javascript directory I get different errors then if I use the default javascript files. One way or another it's not working.

      • 0
        Aaron
        Aaron answered on Feb 14, 2009 5:20 AM

         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.

      • 0
        [Infragistics] Rumen Stankov
        [Infragistics] Rumen Stankov answered on Feb 16, 2009 7:24 AM

        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://www.infragistics.com/Support/#Overview

      • 0
        Chad
        Chad answered on Feb 16, 2009 8:19 PM

        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.
        */

      • 0
        Aaron
        Aaron answered on Feb 16, 2009 8:58 PM

         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.1009
        Copyright (c) 2001-2008 Infragistics, Inc. All Rights Reserved.
        –>
        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
        <xsl:output omit-xml-declaration="yes" method="html"/>

      • 0
        Chad
        Chad answered on Feb 16, 2009 9:09 PM

        Yes – that's how it should look.  They must have corrected the file in the more recent versions.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Aaron
Favorites
0
Replies
8
Created On
Feb 16, 2009
Last Post
17 years, 7 months ago

Suggested Discussions

Created by

Created on

Feb 16, 2009 9:09 PM

Last activity on

Feb 16, 2009 9:09 PM