Use the W3C validator to
check whether www.jp.dk and www.microsoft.com (or
some other Web pages) are valid HTML. If not, see what kinds
of errors there are.
Design an XML language to represent driving directions.
There are countless different solutions, but try to make a fine-grained model.
Tips:
Use your favorite text editor (e.g. Notepad) for editing XML documents. Place your files in C:\XML\ (where the relevant Java jar/class
files are also located.)
To check that a document is wellformed XML, you can either
Create a different
stylesheet for the
recipes.
Change the XHTML
markup to obtain a different look.
Create a new stylesheet for the
recipes that only
shows the title of each recipe.
Continuing the previous exercise: Make the list of titles sorted alphabetically.
Create a stylesheet (producing XHTML) for your own XML version of the
driving directions.
Tips:
You can use the program ApplyXPath to evaluate XPath expressions:
java -classpath xalan.jar;. ApplyXPath
To perform XSLT transformations, use Explorer or Mozilla (as
described here), or use the Xalan command-line tool:
java -classpath xalan.jar;xercesImpl.jar;xml-apis.jar org.apache.xalan.xslt.Process -IN input.xml -XSL stylesheet.xsl -OUT output.xml