Subject: RE: [xsl] XML translation problem using XSLT From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 21 Nov 2002 10:07:22 -0000 |
You are starting the transformation before the loading has finished. Set the async property to false, IIRC. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Dineen, Geoffrey > Sent: 21 November 2002 02:16 > To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx' > Subject: [xsl] XML translation problem using XSLT > > > Hi > > I'm getting the following error from the XML parser when I > attempt to transform an XML document using XSLT. The error is: > > Error Type: > msxml3.dll (0x80004005) > The stylesheet does not contain a document element. The > stylesheet may be empty, or it may not be a well-formed XML document. > > I am using the following namespace: > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > I'm using the following JavaScript to set up the objects and do the > transform: > > var sXml = "/esrscripts2/Menu2.xml" > var sXsl = "/esrscripts2/menus.xsl" > > var oXmlDoc = Server.CreateObject("MSXML2.DOMDOCUMENT.4.0"); > var oXslDoc = Server.CreateObject("MSXML2.DOMDOCUMENT.4.0"); > > //oXmlDoc.async = false; > //oXslDoc.async = false; > oXmlDoc.load(Server.MapPath(sXml)); > oXslDoc.load(Server.MapPath(sXsl)); > > //oXmlDoc.load(sXml); > //oXslDoc.load(sXsl); > > Response.Write(oXmlDoc.transformNode(oXslDoc)); > > Does anybody have any ideas on what could be causing this > error. Any help at all would be greatly appreciated. > > TIA > Geoff Dineen > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Element value, Laura | Thread | [xsl] Selecting nested unique value, chrislott |
RE: [xsl] Element value, bryan | Date | RE: [xsl] setting variables in xslt, Michael Kay |
Month |