xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary L Peskin <ga...@firstech.com>
Subject Re: Xalan query
Date Fri, 23 Mar 2001 02:59:37 GMT
> Darren Wheatley wrote:
> So, my question is: how do I ensure that subsequent calls to the
> XPathAPI
> methods use the context node as the document root? FYI, I've tried
> using
> "importNode" and "clone" to create new copies of the nodes, but the
> XPathAPI
> calls fail to find anything, I guess because DocumentRoot is set to
> NULL
> following an importNode or clone call.

Darren --

I haven't put together an example to test this but won't an XPATH of
.//firstname (note the leading period) give you what you want?

Gary

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message