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

MSXML3 -> WAS: XML Processor for Win 2000

Subject: MSXML3 -> WAS: XML Processor for Win 2000
From: "Joshua Miller" <josh.miller@xxxxxxxxxxxx>
Date: Wed, 12 Sep 2001 10:39:59 -0400
ie6 for win 2000 server
I think I should have been more clear.
A) I'm not using ASP - I'm running ColdFusion with the following code:
	function selectSingleNode(source,style,xlink){
		var objXML=CreateObject("COM", "Microsoft.XMLDOM", "INPROC");
		var objXSL=CreateObject("COM", "Microsoft.XMLDOM", "INPROC");

		objXML.async = "false";
		objNew=objXML.load(source);
		objNode = objXML.SelectSingleNode(xlink);
		objXSL.async = false;
		objXSL.load(style);
		xslOutput=objNode.transformNode(objXSL);
		return xslOutput;
	}

	Then calling the function:
	selectSingleNode(sourceDoc,style2HTML,"help/toc/item[@id='#p#']")
	(where #p# is the variable I'm using to select a specific node)

B) I've already run xmlinst.exe
C) Everything works fine with:
	<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
	when I switch to
	<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
And try to use code that individuals on this list have provided, it outputs
the XSL code as source. I've even installed the MSXML parser on another box,
run the xmlinst.exe and receive the same results. So I had our server admin
do the same - same results. It's installed correctly, just isn't working
properly.


This code works without error:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="help/toc/item">

	<a name="top"></a>
	<h1><xsl:value-of select="@title"/></h1><br/>
	<xsl:value-of select="helpfile"/>
	<br/><br/>

</xsl:template>
</xsl:stylesheet>

This code outputs the XSL to source:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
  <xsl:output method="html"/>
  <xsl:template match="node()|@*">
    <xsl:copy>
    <xsl:apply-templates select="node()|@*"/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="helpfile">
    <xsl:apply-templates select="node()|@*"/>
  </xsl:template>
  <xsl:template match="/">
    <html>
      <body bgcolor="#FFFFFF">
        <xsl:apply-templates select="//helpfile"/>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

In fact, anything that uses anything other than the WD-xsl declaration does
the same thing.

I thought I'd try some MS code, so I downloaded the "XSL Viewer". First off,
I'm running IE6 and  it said "This requires IE5 or higher (apparantly IE6 is
not higher than IE5)" and then pointed me to download IE5. Then I moved to
an IE5 enabled machine and it runs, but when I copy the code to my samples,
it doesn't work and I get the same errors. The XSL viewer code uses the
line:
<xsl:stylesheet xml="http://www.w3.org/XML/1998/namespace"
xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> Which makes IE
throw an error because: "Reference to undeclared namespace prefix: 'xsl'.
Line 1, Position 117".

This is driving me insane. I can't find any items from Microsoft related to
XML that actually work when I try to use them in a real-world situation. I
can use the WD-xsl spec with limited success, but otherwise, nothing else
works. I'm locked into IIS so Xalan/Xerces doesn't appear to be an option -
what else can I do? How do I make this work?

Joshua Miller
Web Development::Programming
Eagle Technologies Group, Inc.
www.eagletgi.com
josh.miller@xxxxxxxxxxxx

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Chris Bayes
Sent: Wednesday, September 12, 2001 10:09 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  XML Processor for Win 2000


Joshua,
This is a simple problem. You either have to put msxml into replace mode
or use specific progids when using asp. i.e. set xsl =
Server.CreateObject("msxml2.domdocument") rather than set xsl =
Server.CreateObject("microsoft.xmldom")

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> Joshua Miller
> 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


 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.