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

Re: XSLT compiler written in XSLT?

Subject: Re: XSLT compiler written in XSLT?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 May 2020 20:06:28 -0000
Re:  XSLT compiler written in XSLT?
Finished, yes, but released no. Hopefully it will be out within a few weeks.

Actually the XSLT processing is done in XSLT, and the XPath processing in
Javascript. We know that parsing XPath using XSLT is possible, but we decided
not to do it that way this time around.

The most challenging part is probably the type checking. Choosing the right
data structures is critical. Compilers tend to be pipelines putting an
expression tree through a series of transformations, so representing the
expression tree in XML is the natural approach, but the problems are (a)
making small changes to a large tree is expensive, and (b) the attributes you
can store on the nodes of the tree are (in effect) limited to strings, and
strings aren't ideal for representing complex things such as types.

Michael Kay
Saxonica

> On 18 May 2020, at 20:04, Dr. Roger L Costello costello@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Folks,
>
> I noticed in the 2019 XML Prague proceedings an article on implementing an
XSLT compiler in XSLT.
>
> How's that going?
>
> Is it finished? Is it released?
>
> /Roger

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.