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

Re: Are XPath expressions parsed using compiler parsin

Subject: Re: Are XPath expressions parsed using compiler parsing techniques?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 8 May 2022 23:10:27 -0000
Re:  Are XPath expressions parsed using compiler parsin
> > Are XPath expressions parsed using compiler parsing algorithms?
>


Yes, of course, how else would you do it?

If you want to know more, I'm hoping to have a paper on the subject at XML
Prague next month.

But if you're interested in this kind of thing, there's a fair bit in my blog
over the years: see https://dev.saxonica.com/blog/mike/

(Incidentally, there's one little XPath parsing trick that's quite amusing. It
turns out that about one in three XPath expressions (especially in XSLT)
contains 4 tokens or less, and you can get a saving by just recognising the
common patterns of tokens: if it's "@" followed by a QName, you can recognize
that as a known pattern and emit the corresponding syntax tree without doing
full parsing at all).

Michael Kay

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.