[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPath parsing in XSLT (version 2.0)

Subject: Re: XPath parsing in XSLT (version 2.0)
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Mon, 20 Nov 2006 16:34:24 -0800
parse xpath by xslt
Just feed the XPath 2.0 gramar to YACC.

Then you'll have to implemented the small and simple table-sriven
parser in XSLT and will have to feed it the YACC-generated tables
(Rules, GoTo, ... etc), probably converted from C-array format into
xml.

Should be pretty strightforward.


However, this seems like a waste of time, because there is already the dyn:evaluate() EXSLT extension function as well as saxon:evaluate().

This means that probably there are not going to be users for an XPath
parser written in XSLT.



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play




On 11/20/06, Erik Wilde <net.dret@xxxxxxxx> wrote:
hello.

i want to parse XPaths in XSLT (specifically, XPath 2.0 in XSLT 2.0).
has anybody heard of an existing XPath 2.0 parser implemented in XSLT
2.0? or, on a more general note: is anybody aware of something like
lex/yacc or javacc for XSLT, so that you can generate parsers from a
given syntax definition? probably pretty hard in XSLT 1.0, but should
not be too hard in XSLT 2.0, i guess.

thanks and cheers,

erik wilde   tel:+1-510-6432253 - fax:+1-510-6425814
       dret@xxxxxxxxxxxx  -  http://dret.net/netdret
       UC Berkeley - School of Information (iSchool)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.