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

Re: transforming XSLT files to use XSLT3 features

Subject: Re: transforming XSLT files to use XSLT3 features
From: "John Lumley john@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 11 Feb 2023 11:56:59 -0000
Re:  transforming XSLT files to use XSLT3 features
On 11/02/2023 11:34, Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx wrote:
The approach is limited by its use of template matches and regular expressions. For some reason, I donbt feel inclined to write an XPath grammar parser in XSLT. But still, some low-hanging fruit can be obtained.

Have a look at Gunther Rademacher's REx Parser Generator https://www.bottlecaps.de/rex/


It can be used to generate an XSLT parser for XPath 2. (I've used it extensively in the past for analysing XPath 3 expressions.)

An alternative, if your XSLT platform supports it, is to use an InvisibleXML parser https://invisiblexml.org/
There is an iXML grammar forB XPath3.1 available (https://github.com/invisibleXML/ixml/tree/master/samples/XPath) which will also parse XPath2. You may be able to experiment with this using Martin Honnen's XSLT3 Fiddle (https://martin-honnen.github.io/xslt3fiddle/) which supports invisibleXML parsing functions.



John Lumley


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.