Lab 1 - Create a new collection, add an XML file, then XQuery the file

1. Within /db create a new collection: lab01

2. Put this resource into the lab01 collection: planets.xml

3. Open planets.xq (in this folder)

4. Replace these 5 lines:

declare namespace saxon = "http://saxon.sf.net/";
declare option saxon:output "indent=no";
declare option saxon:output "method=html";
declare option saxon:output "doctype-public=-//W3C//DTD XHTML 1.0 Strict//EN";
declare option saxon:output "doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";

with these 2 lines:

declare namespace exist = "http://exist.sourceforge.net/NS/exist";
declare option exist:serialize "method=html indent=no doctype-public=-//W3C//DTD&#x020;XHTML&#x020;1.0&#x020;Strict//EN  doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";

5. Currently planets.xq uses _implicit_ input. Modify it to explicitly get input from: /db/lab01/planets.xml
 
6. Drag and drop planet.xq into Oxygen.

7. Execute the XQuery