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

Re: What is the Venn diagram for XPath, XQuery, and X

Subject: Re: What is the Venn diagram for XPath, XQuery, and XQuery Update?
From: "Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 1 Feb 2023 21:20:37 -0000
Re:  What is the Venn diagram for XPath
Michele, Roger and XSL-List,

We could ask a bot to draw us an SVG and watch it lie like a dog. (A happy dog
but still a dog.)

One key to understanding the subtlety of the question is that XPath and XQuery
have both syntactic and semantic aspects. So for example we have a situation
where XPath 2.0 is a clean superset of XPath 1.0 (or pretty close to clean -
others will correct me), while with respect to the underlying semantics, XPath
2.0 is quite a different beast.

Incidentally, XQuery 1.0 is not aligned with XPath 1.0 this way - it's aligned
with XPath 2.0.

Indeed as Martin says the 'superset/subset' idea is misleading. Adding
features ordinarily means adding syntax. So the new language is a superset.
But it also means adding rules, thereby invalidating some inputs or creating
new error conditions. Semantically, the new language might thus be a subset,
except for the new features, where it's a superset.

Compatibility generally means both the syntax works, and it works the same way
- so alignment in both syntax and semantics is necessary.

This makes it an easy question to pose but difficult to answer.

What's amazing is that with respect to syntax, and modulo details about entity
resolution, the progression is pretty smooth, even while semantics and data
model develop in a big way.

Cheers, Wendell

From: Michele R Combs mrrothen@xxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, February 1, 2023 10:44 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  What is the Venn diagram for XPath, XQuery, and XQuery
Update?

But where is the actual diagram?  :)

Sent from
Nine<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.9fo
lders.com%2F&data=05%7C01%7Cwendell.piez%40nist.gov%7Cca522fe7e7724e3078c908d
b046b1c24%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638108630304586232%7CU
nknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
VCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RI8GZ5uLxbAZHXD4FQie14LmGMIg94qMywWw%2B3QOBC
Y%3D&reserved=0>
________________________________
From: "Joe Wicentowski joewiz@xxxxxxxxx<mailto:joewiz@xxxxxxxxx>"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list-service@xxxxxxxxxxxx
rytech.com>>
Sent: Wednesday, February 1, 2023 8:55 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  What is the Venn diagram for XPath, XQuery, and XQuery
Update?

Hi Roger,

I posted an answer to the question you cross-posted to Stack Overflow:

  https://stackoverflow.com/questions/75311657/what-is-the-venn-diagram-for-x
path-xquery-and-xquery-update<https://gcc02.safelinks.protection.outlook.com/
?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F75311657%2Fwhat-is-the-ven
n-diagram-for-xpath-xquery-and-xquery-update&data=05%7C01%7Cwendell.piez%40ni
st.gov%7Cca522fe7e7724e3078c908db046b1c24%7C2ab5d82fd8fa4797a93e054655c61dec%
7C1%7C0%7C638108630304586232%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQ
IjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=S6ExqMZ8Wsyf
da8PlFrKYskd4F2C4crQv9MCoKGR5A0%3D&reserved=0>

Joe

On Wed, Feb 1, 2023 at 8:04 AM Roger L Costello
costello@xxxxxxxxx<mailto:costello@xxxxxxxxx>
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list-service@xxxxxxxxxxxx
rytech.com>> wrote:
Hi Folks,

Note: in all of the following, when I refer to "XQuery" I mean the latest
version of XQuery. Ditto for XQuery Update.

[True or False] XQuery is a superset of XPath. That is, the XQuery language
consists of all the stuff in XPath plus more.

Eek! I didn't specify the version of XPath.

[True or False] XQuery is a superset of XPath 1.0
[True or False] XQuery is a superset of XPath 2.0
[True or False] XQuery is a superset of XPath 3.0
[True or False] XQuery is a superset of XPath 3.1

[True or False] XQuery Update is a superset of XQuery.

/Roger

XSL-List info and
archive<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
mulberrytech.com%2Fxsl%2Fxsl-list&data=05%7C01%7Cwendell.piez%40nist.gov%7Cca
522fe7e7724e3078c908db046b1c24%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C6
38108630304586232%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzI
iLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zGBQG2mk29Krn2lz6g0%2FS
g6HycHZ%2FsEqdfLEAoxOA9Y%3D&reserved=0>
EasyUnsubscribe<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2
F%2Flists.mulberrytech.com%2Funsub%2Fxsl-list%2F1127818&data=05%7C01%7Cwendel
l.piez%40nist.gov%7Cca522fe7e7724e3078c908db046b1c24%7C2ab5d82fd8fa4797a93e05
4655c61dec%7C1%7C0%7C638108630304586232%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=x
3ynlu%2B3cUgLwSHc1Yk43rzzzcfU%2Bpg5ysbqGrH%2BRDw%3D&reserved=0> (by email)
XSL-List info and
archive<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
mulberrytech.com%2Fxsl%2Fxsl-list&data=05%7C01%7Cwendell.piez%40nist.gov%7Cca
522fe7e7724e3078c908db046b1c24%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C6
38108630304586232%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzI
iLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zGBQG2mk29Krn2lz6g0%2FS
g6HycHZ%2FsEqdfLEAoxOA9Y%3D&reserved=0>
EasyUnsubscribe<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2
F%2Flists.mulberrytech.com%2Funsub%2Fxsl-list%2F3302254&data=05%7C01%7Cwendel
l.piez%40nist.gov%7Cca522fe7e7724e3078c908db046b1c24%7C2ab5d82fd8fa4797a93e05
4655c61dec%7C1%7C0%7C638108630304586232%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=a
xY5IQICWpnTRmFB%2FRBeDLYXHEij%2B3TvFVCn6YtvJQ8%3D&reserved=0> (by email<>)

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.