[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: RE: node-set
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 2 Jul 2001 04:19:15 -0700 (PDT)
> The xx:node-set() function converts a result tree fragment to a node-set. It
> doesn't take a string containing an XPath expression and evaluate that
> expression. For that you need something like the saxon:evaluate() extension
> function. You can simulate this in MSXML3 by calling selectNodes() within a
> JScript extension.

Simulating dynamic evaluation of XPath Expressions "by calling selectNodes() within
a JScript extension" is not always possible. 

The simplest example is: 

$p | $q

It would not be possible to evaluate any XPath expression including nodes from more
than one tree, because selectNodes() treats the passed XPath expression as relative
to the IXMLDOMNode object, against which the method is invoked.

Or am I wrong?

Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


Current Thread
  • node-set
    • Clark, Jason - Sun, 1 Jul 2001 08:36:21 -0400 (EDT)
      • <Possible follow-ups>
      • Dimitre Novatchev - Mon, 2 Jul 2001 07:24:30 -0400 (EDT) <=
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member