/afs/informatik.uni-goettingen.de/course/xml-lecture/XML-DTD
/afs/informatik.uni-goettingen.de/course/xml-lecture/XML-DTD
xmllint -shell mondial-europe-2.0.xml pwd cat //country cat //country/name cat //country[name="Germany"] cd //country[name="Germany"] pwd cd province[9] du cat name dir cd id('cty-Germany-Hannover') cat pwd
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
(see comments on querying XHTML below for the consequences of this).<!ELEMENT html (head, body)> <!ATTLIST html xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml' >
saxonXQ "{doc('/afs/informatik.uni-goettingen.de/course/xml-lecture/Mondial/mondial.xml')//country/name}" saxonXQ "{doc('http://www.dbis.informatik.uni-goettingen.de/Mondial/mondial.xml')//country/name}"
In eXist, documents are addressed by
doc('filename').
E.g. doc('/db/xmlcourse/mondial.xml')/mondial/country
Here, filename has to be the name of a file stored in the eXist database.
The following douments are currently stored locally:
declare namespace xhtml = "http://www.w3.org/1999/xhtml"; doc('/db/xlink.htm')//xhtml:img
alias saxonXQ='java -cp /afs/informatik.uni-goettingen.de/group/dbis/public/saxon/saxon8.jar net.sf.saxon.Query'
alias saxonXSL='java -cp /afs/informatik.uni-goettingen.de/group/dbis/public/saxon/saxon8.jar net.sf.saxon.Transform'Call saxonXQ filename.xq to execute an XQuery (or XPath query) from a file. The query in filename.xq must address a document by using the doc('filename.xml or url') function.
/afs/informatik.uni-goettingen.de/course/xml-lecture/XPath/mondial-queries.xsl
/afs/informatik.uni-goettingen.de/course/xml-lecture/XPath/hamlet-queries.xsl
/afs/informatik.uni-goettingen.de/course/xml-lecture/XPath/xlinkpaper-queries.xsl
/afs/informatik.uni-goettingen.de/course/xml-lecture/XPath/web-queries.xsl
/afs/informatik.uni-goettingen.de/course/xml-lecture/Mondial/Mondial-Distributed.
/afs/informatik.uni-goettingen.de/course/xml-lecture/XMLSchema/mondial.xsd
There is an Oracle instance accessible from the CIP-Pool. Use the global alias command sqlap34 for logging into a dummy account (one account for all).
Please do not change the mondial tables (otherwise, start @consult and re-create the respective table). The user is allowed to create tables and views - please identify everything you create by your name (e.g. CREATE TABLE MAY_COUNTRY (...)) and delete it if you don't need it any more.