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

RE: XML Processor for Win 2000

Subject: RE: XML Processor for Win 2000
From: "Ben Robb" <b.robb@xxxxxxxxxx>
Date: Wed, 12 Sep 2001 15:03:26 +0100
objxml.parseerror.errorcode
There are lots of things you can check to see what precisely is causing
your problem...

1) Make sure you are using the correct version of MSXML in your code.
Your progID should be "MSXML2.DOMDocument" or
"MSXML2.FreeThreadedDOMDocument".

2) Make sure you are using the correct namespace for XSLT.

3) Check the access permissions on the XML/XSL files, and make sure that
the IUsr account has at least read permissions on them.

4) Use the inbuilt debugging scripts (parseError), which will help you
find out precisely what the problem is. 

You should always have code which looks something like what is outlined
below - it will save you a LOT of time when debugging.

============================
Set objXML = Server.CreateObject("MSXML2.DOMDocument")
objXML.load(xmlpage)

if objXML.parseError.errorCode <> 0 then
	' we have parse errors in the XML:
	Response.Write "<b>Error loading XML.</b><br>"
	Response.Write "Reason: " & objXML.parseError.reason & "<br>"
	Response.Write "Number: " & objXML.parseError.errorCode & "<br>"
	Response.Write "Line: " & objXML.parseError.line & "<br>"
else
	' passed parse error check on XML, load XML
	Set objXSL = Server.CreateObject("MSXML2.DOMDocument")
	objXSL.load(xslpage)

	if objXSL.parseError.errorCode <> 0 then
		' we have parse errors in the XSL:
		Response.Write "<b>Error loading XSL.</b><br>"
		Response.Write "Reason: " & objXSL.parseError.reason &
"<br>"
		Response.Write "Number: " & objXSL.parseError.errorCode
& "<br>"
		Response.Write "Line: " & objXSL.parseError.line &
"<br>"
	else
		' passed parse error check on XSL, perform the transform
		Response.Write objXML.transformNode(objXSL)
		
	end if ' XSL parse error check

	Set objXSL = nothing
end if ' XML parse error check

Set objXML = nothing
=============================


Hope this helps - if not, tell us what error messages are being
generated.

Ben

> -----Original Message-----
> From: Joshua Miller [mailto:josh.miller@xxxxxxxxxxxx]
> Sent: 12 September 2001 14:32
> To: Xsl-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XML Processor for Win 2000
> 
> 
> I'm trying to build an xml application on a Windows 2000 server, I've
> installed MSXML3 and have written some code exactly to 
> standard (both XML
> and XSL) but when I try to apply the template, I get nothing. 
> If I go and
> view the source of the page, the sourcecode contains the XSL 
> code that I've
> written. No HTML output, no transformation, no errors, just 
> displays the XSL
> as the page source.
> 
> Any ideas? What can I use other than MSXML when using IIS as 
> a webserver?
> 
> Joshua Miller
> Web Development::Programming
> Eagle Technologies Group, Inc.
> www.eagletgi.com
> josh.miller@xxxxxxxxxxxx
> 
> 
>  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

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.