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

Re: Why do some people not use XSLT to process XML-fo

Subject: Re: Why do some people not use XSLT to process XML-formatted data?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Nov 2024 11:30:45 -0000
Re:  Why do some people not use XSLT to process  XML-fo
> I don't understand why anyone would not use XSLT to process XML documents.
The XSLT language was explicitly designed for processing XML documents, i.e.,
XSLT is a domain specific language (DSL). When a DSL exists, shouldn't it
always be chosen over a general-purpose language such as Java?

People use data binding for two reasons: (a) it avoids the need to learn yet
another language, and (b) it make it easier to integrate the XML-processing
part of the application with other parts that are written in Java for other
reasons. And I agree with you, these are often poor reasons. In particular,
they make it much harder to take advantage  the "semi-structured" nature of
XML, and its inherent potential for handling variety and change.
>
> SAXON processes XSLT using Java. Why? Why doesn't SAXON use XSLT to process
XSLT? Should I infer that the XSLT language is not powerful enough with
certain types of programming?
>

I have written a number of papers over the years on the potential for writing
an XSLT processor in XSLT: see for example

https://www.saxonica.com/papers/xmlprague-2019mhk.pdf

The main difficulty in doing it is the limited set of data structures
available in the XDM data model. XSLT has always been designed as a
special-purpose programming language rather than a general-purpose language,
and writing compilers is not one of those special purposes. We do however have
the front-end of an XSLT compiler written in XSLT as part of the SaxonJS
product.

Michael Kay
Saxonica

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.