To be able to evaluate the XPath, you need to parse! Or you use something like XPP. Or... oh well, yes, or you have a "map" (or "index") of your XML-file which a good (but non-existent yet) parser can use to extract only what you want.
Stopping ? Mmh... well... again, that would mean go into the SAX-level which Jelly only does for output and not for input.
Would be interesting but this looks to me like a quite general question of parsing!
paul
On 27-May-04, at 16:43 Uhr, Kevin MacClay wrote:
With Jelly, is there any way to process only a portion of an XML document? The ideal would be to supply an XPath to tell it where to begin processing the script. Then there would be a special tag that caused the script to stop processing (similar to a "return" in a Java method). The result could return an XPath of the stopping point in the XML.
I know this presents a different way of looking at Jelly. Usually you think in terms of processing the entire document and coming up with an XML result. But I think the ability to process portions of the XML would open the project up to other uses. If this feature is not available now, do you think it would fit into the current architecture at all?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
