trouble using name() property

Subject: trouble using name() property
From: "Amanda Birmingham" <amanda@xxxxxxxxx>
Date: Mon, 8 May 2000 08:23:33 -0400
I'm having a great deal of trouble getting the name of an element.  I've
been lurking on this list for a while, and have read through the FAQ, but
can't seem to get any of the suggested solutions to work for me.  I'm
using msxml, version 2.0.  Can anyone lend a hand in diagnosing the error in
the code shown below?
(which works fine for me if I take the "<xsl:value-of select="name()" />"
line out ...)
Thanks very much,
Amanda Birmingham

the XSL, in its entirety:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="";>

<xsl:template match="/">
 <xsl:apply-templates select="//EVENT" />

<xsl:template match="EVENT">
 <xsl:value-of select="name()" />


The ASP I am using (containing the test XML string I'm trying to transform):
<%@Language = VBScript%>
response.buffer = true
response.expiresAbsolute = now() - 1
 'load the xml
 set xml = Server.CreateObject("Microsoft.XMLDOM")
 xml.async = false
 xml.loadxml("<?xml version='1.0'?><EVENT>hi</EVENT>")

 'load the xsl
 set xsl = Server.CreateObject("Microsoft.XMLDOM")
 xsl.async = false

 'transform and write out
 outputstring = xml.transformNode(xsl)
 response.write outputstring

Result  of  running the above asp page, as displayed on my browser (IE5):

error '80004005'
Unspecified error

/elity-pages/tests/nodenametest.asp, line 18

[this is the line with the xml.transformNode(xsl) call in it.]

 XSL-List info and archive:

Current Thread