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

xpath versions comparison

Subject: xpath versions comparison
From: "Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 2 Jan 2021 06:00:07 -0000
 xpath versions comparison
Hi all,
    As we all know, currently we've following versions of XPath language:
1.0, 2.0 & 3.1.

I've been trying to think that, what are the major differences between the
above mentioned XPath versions. Below are my thoughts,

1) Since XPath 2.0, the XPath data model has fundamentally changed as
compared to XPath 1.0. XPath 2.0 has introduced sequences, with every
instance of XPath 2.0 data model being a sequence (XPath 2.0 sequence is an
ordered list of nodes and the atomic values. It could be all nodes, all
atomic values, or nodes plus atomic values within the XPath sequence).
Now, XPath 2.0 spec has an associated XPath 2.0 F&O (functions and
operators) spec, which wasn't the case with XPath 1.0. The XPath 2.0 F&O
spec, describes lot more XPath library functions as compared to XPath 1.0.

2) The fundamental data structure of XPath 3.1 data model is a sequence
(same as that with XPath 2.0). The XPath 3.0 data model, has introduced
function items (an XPath data model item. An XPath 2/3 sequence, is a list
of items. An XPath item has node and atomic value as child.). A function
item is a function definition. XPath 3.1 data model has also introduced map
and array data structures, with needed functions in XPath 3.1 F&O specs.
This is one of the huge innovations in XPath 3.1. The XPath 3.1 F&O spec is
even vast as compared to XPath 2.0.

Now we can see, XPath 4.0 spec being developed by W3C, to make the upcoming
new XPath language more versatile that also can have XSLT 4.0 (and possible
XQuery's new version) as its host language. I personally like these
developments to XPath, XSLT & XQuery languages.


Any thoughts, about above mentioned XPath language summary?



--
Regards,
Mukul Gandhi

(earlier, gandhi.mukul@xxxxxxxxx)

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.