Re: [xsl] Re: Re: sequential navigation problem (long)

Subject: Re: [xsl] Re: Re: sequential navigation problem (long)
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 5 Dec 2002 19:14:56 +0000
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


Current Thread