[xsl] Filtering to the first nodes only

Subject: [xsl] Filtering to the first nodes only
From: "Geoffrey V. Brown" <geoffb@xxxxxxxxxxxxx>
Date: Wed, 12 Jun 2002 10:17:59 -0400
Hi,
I need a way to filter only the first level of nodes in an xml document.

I'm using javascript to interact with the XML.

Here is the code that I'm using, per Microsoft's example:

filterStmt = "Message[position()= 1]";
firstRow = history[curDim].oDoc.selectNodes(filterStmt);

Using the "position" statement is supposed to only show the first level of
nodes.  My parser rejects the postion() function as not valid.

Is there another way to do this?

Thanks,
Geoff B


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


Current Thread