[xsl] JavaScript Patterns

Subject: [xsl] JavaScript Patterns
From: ward.ct@xxxxxx
Date: Wed, 21 Feb 2001 17:48:23 -0500
I had a question on patterns.  Note: I'm strictly using JavaScript.  I'm not
using XSL.

First the XML:

I have the following JS code:

var nodes = doc.selectNodes("//level");    'Where doc is an XML document
for (var n=0; n<nodes.length; n++)

This works and returns all of the levels I want, but it also includes the
children, col1 & col2.  Is there a way just to return the levels ?

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread