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

RE: Using position predicate in XPath string within s

Subject: RE: Using position predicate in XPath string within selectS ingleNode DOM method
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Tue, 23 Nov 2004 18:51:29 -0600
objxml.selectsinglenode
Hi Matthieu,

Try

Set objNode= objXML.selectSingleNode("foo[.=3]") 

Obviously, using MSXML 3.0, objXML should be of type MSXML2.DOMDocument.3.0,
and objNode should be of type MSXML2.IXMLDOMNode.

HTH,
<prs/>

-----Original Message-----
From: Matthieu Ricaud [mailto:matthieu.ricaud@xxxxxxx] 
Sent: Tuesday, November 23, 2004 10:20 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; Hardy Merrill
Subject:  Using position predicate in XPath string within
selectSingleNode DOM method

Hi !

Does anybody know why I can't write something like this :

Set objNode= objXML.selectSingleNode("foo[3]")

(no node matched)

Whereas objNode= objXML.selectSingleNode("foo") works fine

foo[3] is the abreviation for foo[position()=3]

position() is a function, would that means that function are not allowed in
Xpath string within selectSingleNode

I've also tried with SelectNodes method, but I still have the same problem

I use ASP with DOM and my parser is MSXML3

Has anybody an explanation for this,

In advance Thanks,

Regards,

Matthieu.

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.