Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errata: #22

Open
3 tasks done
ebeshero opened this issue Jun 8, 2022 · 0 comments
Open
3 tasks done

Errata: #22

ebeshero opened this issue Jun 8, 2022 · 0 comments

Comments

@ebeshero
Copy link
Owner

ebeshero commented Jun 8, 2022

Errata to correct on GitHub syllabus

Tuesday: XPath and XQuery

===========================

  • #### XPath and XQuery in eXist-db
G. Introducing variables (10 minutes; 11:30 a.m.–11:40 a.m.)
d. The value after as specifies the data type. It is optional, but strongly recommended.

i. Other common values include xs:string or xs:integer().

That should read: xs:integer.

======================================

  • #### XQuery flow control (1:30 p.m.–4:00 p.m.)
Writing XQuery in stages (30 minutes; 1:30 p.m.–2:00 p.m.)

2.a XQuery flow control, declare variable $si as document-node() := doc('https://raw.githubusercontent.com/ebeshero/UpTransformation/master/data/Charles1.xml');

The second variable is misnamed and should be declare variable $Chas as document-node() := doc('https://raw.githubusercontent.com/ebeshero/UpTransformation/master/data/Charles1.xml');

======================================

  • #### XQuery flow control (1:30 p.m.–4:00 p.m.)
Review XPath for loops; sequence and range variables
  1. b. Find all persons listed as born in Scotland in two ways: with a for loop and as a one-line XPath path expression. for $i in //person[contains(birth, "Scotland")] return $i or //person[contains(birth, "Scotland")]. You should return 30 elements.

The returned value should (now) be 45 and not 30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant