Problem Accessing Nodes

Subject: Problem Accessing Nodes
From: "Mangano, Chris" <C.Mangano@xxxxxxxxxxx>
Date: Thu, 16 Nov 2000 14:02:53 -0800
I have been racking my brain over this one.  Does anybody see anything wrong
with the following?

Assuming my XSL file looks something like this:

<xsl:Xtylesheet ...>
	...some javascript

<xsl:template ...>
	<table ...>
		<xsl:for-each order-by="nothing">
			...some stuff in here

Then, I have an ASP page which puts my XML and XSL in data islands, like:

<XML ID="XMLDOM" SRC="whatever.xml"></XML>
<XML ID="XSLDOM" SRC="whatever.xsl"></XML>

Then, I use a JavaScript function to sort the columns on the client:

	//error occurs here.  Error is
XSLDOM.XMLDocument.selectSingleNode(...) is null or not an object
for-each/@order-by").nodeValue = (Order + By);

I have no idea why this isn't working.  When I do the same thing to access
the one of my script blocks in the XSL, it works fine.  Does anyone see my
error?  Thanks in advance.

Chris Mangano

 XSL-List info and archive:

Current Thread