This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: [slightly OT] question about PAX and XPath
- From: "Macaulay,Malcolm (US)" <Malcolm dot Macaulay2 at cnare dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 5 Jun 2002 13:19:03 -0500
- Subject: RE: [xsl] [slightly OT] question about PAX and XPath
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Amanda,
selectNodes and selectSingleNodes do take XPath. I assume you're using MSXML4, in which case you have to do:
...
oMyDOM.load url
oMyDOM.setProperty "SelectionLanguage", "XPath"
..
set oMyNodeSet = oMyDOM.selectNodes(SomeXPath)
Not sure why, but I think it has something to do with the MS DOM supporting some pre-XPath query language. The SDK for the MSXML4 is pretty good.
cheers
Malcolm
-----Original Message-----
From: Amanda Birmingham [mailto:lists@imladris.com]
Sent: 05 June 2002 13:00
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] [slightly OT] question about PAX and XPath
Hello, List,
I'm doing some programming using DOM methods to get info out of an xml
document, and have been frustrated by the fact that, as far as I can tell,
the only DOM methods that will accept XPaths as selectors are MS
extensions, not standards (selectNodes, selectSingleNodes). (If I've got
this wrong, would someone correct me, please?)
I found something on the w3c's site about a proposal called Pax ... it
looks to me like it might be aiming to solve just the issue I'm having--but
I'm not sure (I find the w3c docs notoriously hard to read), and I'm having
trouble finding info about this proposal anywhere *else*.
Could someone tell me if I'm way off base guessing what Pax is supposed to
do, and/or point me toward some non-w3c description of it? I'd love to
know for sure what its goal is and expected time-to-recommendation ...
Thanks much,
Amanda Birmingham
Web Application Developer
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list