From: Geert J. <Geert.Josten@Daidalos.nl> - 2001-01-05 09:44:45
|
Yes, a resulting node-set is incompatible... I was only thinking that far most xpath-expressions are used to select a value with xsl:value-of. That function always returns one of the simplest variable types, string or number... In those cases the result of XPath is just the value. Oh, I forgot that XPath is also used for xsl:variable, one can store the resulting node-set in a variable. Maybe it is possible to manipulate the resulting tree so that becomes a DOM-tree. If the structures resemble each other enough, it might even be done relatively quick. Other alternative: parse the XPath expression and construct a block of perl-code to retrieve the set, saving as much variable usage as possible and saving many function-calls as well. Though the parsing itself may cancel the gain of speed... Greets, Geert Pavel Nejedly wrote: > > On Fri, Jan 05, 2001 at 09:39:44AM +0100, Geert Josten wrote: > # I am convinced that XML::XPath can be used very easily for getting node-set > # selections (xsl:value-of etc.). Anyone comment on this? Anyone interested? > > Hmmm... But it's incompatible with XML::DOM (or is it?) > But I agree that XML::XPath would help us... > > Pavel |