[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problems doing XSL Transformation using ASP

Subject: Re: Problems doing XSL Transformation using ASP
From: Mukul Gandhi <mukulgw3@xxxxxxxxx>
Date: Fri, 10 Oct 2003 19:38:23 -0700 (PDT)
msxml3.dll error 80004005
The XSL file you posted, when applied to the XML,
_works fine with MSXML3.0_ . From your code, it looks
to me that you are using MSXML2.0 . MSXML2.0 does not
conform to the official W3C XSL Recommendation. I
guess MSXML2.0 supports the _W3C XSL Working Draft_ . 

But _MSXML3.0 supports W3C XSLT 1.0 and the W3C XPath
1.0 Recommendations_. If you can try with MSXML3.0, I
think the problem will be solved. Or you can try with
MSXML4.0. It also supports W3C Recommendations..

Regards,
Mukul


--- Rangarajan Calyanakoti <crranga@xxxxxxxxxxx>
wrote:
> Folks,
> 
> I have a very simple XML, XSL file and a very simple
> ASP file to perform the 
> XSL Transformation on the XML file using the XSL
> file and providing it to 
> any client browswer.  I get the following error.
> 
> NOTE: If I open the xml file (that is just from the
> client side) it works 
> just fine!
> 
> What am I missing???
> 
> ERROR
> ---------
> 
> msxml3.dll error '80004005'
> 
> The stylesheet does not contain a document element.
> The stylesheet may be 
> empty, or it may not be a well-formed XML document.
> 
> /test/vqtreport.asp, line 9
> 
> 
> ASP FILE - dummy.asp
> ------------
> <%@ language=javascript %>
> <%
>    var xslt = new
> ActiveXObject("Msxml2.XSLTemplate");
>    var xslDoc = new
> ActiveXObject("Msxml2.FreeThreadedDOMDocument");
>    var xslProc;
>    xslDoc.async = false;
>    xslDoc.resolveExternals = false;
>    xslDoc.load("dummy.xsl");
>    xslt.stylesheet = xslDoc;
>    var xmlDoc = new
> ActiveXObject("Msxml2.DOMDocument");
>    xmlDoc.async = false;
>    xmlDoc.resolveExternals = false;
>    xmlDoc.load("dummy.xml");
>    xslProc = xslt.createProcessor();
>    xslProc.input = xmlDoc;
>    xslProc.transform();
>    Response.Write(xslProc.output)
> %>
> 
> 
> XML FILE - dummy.xml
> ------------
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="dummy.xsl"?>
> 
> <DUMMY>
> </DUMMY>
> 
> XSL FILE - dummy.xsl
> ------------
> <?xml version='1.0'?>
> <xsl:stylesheet version="1.0"
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>    <xsl:output method="html" indent="yes"/>
> 
>    <xsl:template match="/">
>       <html>
>          <h1>Yahoooooooo</h1>
>       </html>
>    </xsl:template>
> </xsl:stylesheet>
> 
>
_________________________________________________________________
> Get McAfee virus scanning and cleaning of incoming
> attachments.  Get Hotmail 
> Extra Storage!  
> http://join.msn.com/?PAGE=features/es
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.