Re: [xsl] What is the Venn diagram for XPath, XQuery, and XQuery Update?

Subject: Re: [xsl] What is the Venn diagram for XPath, XQuery, and XQuery Update?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 1 Feb 2023 14:56:09 -0000
Am 2/1/2023 um 2:04 PM schrieb Roger L Costello costello@xxxxxxxxx:
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.

There are minor syntactic differences, in XPath 3.1 you can use a string
literal containing an ampersand e.g.

B 'This is an <em>important</em> & often overlooked difference.'

is a syntactically correct XPath expression.

However, in XQuery, it would raise an error "No closing ';' found for
entity or character reference" so you would need e.g.

'This is an <em>important</em> &amp; often overlooked difference.'




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

Current Thread