This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Filtering to the first nodes only
- From: "Geoffrey V. Brown" <geoffb at deerfield dot com>
- To: <XSL-List at lists dot mulberrytech dot com>
- Date: Wed, 12 Jun 2002 10:17:59 -0400
- Subject: [xsl] Filtering to the first nodes only
- Reply-to: xsl-list at lists dot mulberrytech dot com
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