This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Filtering to the first nodes only


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]