[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Re: sequential navigation problem (long)
Dimitre wrote: >> Could you provide a pointer to this work (writing a parser in XSLT >> ), please? >> >> Dimitre David C. wrote: > I have some vague recollection of Jeni once posting here some xslt > that would parse some subset of Xpath syntax. perhaps it's the exslt > template version of evaluate().. let me see ... nope don't see it > there. A couple of years ago I wrote an XSLTDoc application (http://www.jenitennison.com/xslt/utilities/XSLTDoc.zip) that includes an XPath parser written in XSLT (xpath.xsl). The parser creates a parse tree in XML. The application uses that parse tree to create explanation for the expression, but I guess you could do other things with it such as use it for evaluating expressions. Anyway, I'm quite sure that it's by no means perfect and it does make heavy use of the node-set() extension function. It would be a fair bit easier to do with the regular expression support in XSLT 2.0 (though not *very* easy, since you have to worry about matching brackets and so on). Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|