I run some training courses for developers in Singapore and have a web site that contains information about all the courses
available. There are a couple of different courses and I simply maintain them in plain text files although storing all these
information in a database seems like a better idea. However, besides wanting my customers to view the site using a web browser,
I also want my customers to be able to check the course information using a WAP device. This is an added convenience for people
who wanted to quickly confirm the timing of the course as well as the course content.
The obvious choice for the markup language to use is XML. There is little motivation for me to code the pages in HTML, because
by doing so I have to create another set of WML pages for WAP devices.
A typical course page looks like this:
XML/XSLT - Extensible Markup Language & Extensible Stylesheet Language16XML is the language used for describing data. With the advent of WAP,
web sites developers are increasingly deploying their sites in XML and
using the transformation engine of XSL, which is XSLT, to tailor their
web pages to different browsers. Participants will be developing
applications that can dynamically adapt to different browsers.
800Evenings14102000Rock TowerFull Days21102000Developers Unit
The XML document contains the following information:
Course title and synopsis
Cost of the course in S$ dollars
The timing of the course. You can have more than one run of a course.
If you load the XML document using Microsoft Internet Explorer 5 (IE5), you should see the following display:
Obviously we wouldn't want to let our customers see the XML document in its raw form (what IE5 did was to apply a default stylesheet
to an XML document without any stylesheet specified). For customers using a web browser, we should display the course page using
HTML. Let's see how we can do that.