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

Problem Accessing Nodes

Subject: Problem Accessing Nodes
From: "Mangano, Chris" <C.Mangano@xxxxxxxxxxx>
Date: Thu, 16 Nov 2000 14:02:53 -0800
xmldocument selectsinglenode problem
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 ...>
<xsl:Xcript>
	...some javascript
</xsl:Xcript>

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

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:

<XCRIPT>
	//error occurs here.  Error is
XSLDOM.XMLDocument.selectSingleNode(...) is null or not an object
	
XSLDOM.XMLDocument.selectSingleNode("/xsl:stylesheet/xsl:template/table/xsl:
for-each/@order-by").nodeValue = (Order + By);
</XCRIPT>

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:  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.