For practical exercises, the XML software is installed in the IFI CIP Pool.
/afs/informatik.uni-goettingen.de/course/xml-lecture/XML-DTD
/afs/informatik.uni-goettingen.de/course/xml-lecture/XML-DTD
xmllint -shell mondial-europe.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}"
export $DBISPATH=/afs/informatik.uni-goettingen.de/user/d/dbisuser/XML-Tools export SAXON11CLASSPATH=$DBISPATH/saxon/saxon-he-11.4.jar:$DBISPATH/XMLResolver/xmlresolver-4.5.1.jar:$DBISPATH/XMLResolver/xmlresolver-4.5.1-data.jar alias saxonXQ='java -cp $SAXON11CLASSPATH net.sf.saxon.Query' alias saxonXSL='java -cp $SAXON11CLASSPATH net.sf.saxon.Transform' alias saxonValid='java -cp $SAXON11CLASSPATH net.sf.saxon.Query -qs:. -dtd:on '
saxonXQ -s:/afs/informatik.uni-goettingen.de/course/xml-lecture/Mondial/mondial.xml filename.xqThus, it is not necessary to specify the document in the query file. This can also be specified as an alias:
alias saxonXQMondial='saxonXQ -s:/afs/informatik.uni-goettingen.de/course/xml-lecture/Mondial/mondial.xml'
The XQuery/XSLT-Demo WebService. This WebService also uses Saxon internally.
The WebService is also available for local installations for Download and for copying in the CIP Pool at
/afs/informatik.uni-goettingen.de/course/xml-lecture/XML-Tools/xquery-demo.warIt can be used with any standard web application server, e.g. tomcat (see installation).
/afs/informatik.uni-goettingen.de/course/xml-lecture/Mondial/mondial.xsd
xmllint -noout -schema <schemafilename> <file.xml>
java -cp ~dbis/XML-Tools/saxon/saxon9ee.jar com.saxonica.Validate -xsd:mondial.xsd mondial.xml
Students can install tomcat on their computers at home, and even install/run it in their accounts on the computers in the CIP Pool: