XML and XSL examples
You can find many examples from the Web of the
at
TOP XML tools web site. If you would like to
have some 'home growing' examples :-), be my guest. I only have
some very simple XML-XSL
examples. The setting for these examples
is as follows. We would like to have some sort of 'human
resource information' on the web using XML-technologies.
We would like to keep the following information about each person:
name, SSN, Address, and Occupation.
-
The schema defines the types that we are going
to use to describe our data. This schema views everything but the
address as an attribute with a single value. Here is an example of
an instance valid with respect to
this schema.
-
This is
another schema for the types that we are going
to use to describe our data. It is different that the pervious one
because we do not consider 'Occupation' as a single-valued attribute.
Here is an example of
an instance valid with respect to
this schema.
-
This is a XSL sample that takes the previous
XML file and forms a 'Employee List' with their name, address, and
the second occupation.
The effect --- when you applied this style sheet to the above
XML document --- can be seen here.
It is supposed to be a table like this.
(this is for viewing using Mozilla/Netscape on Linux)
Note: This examples can be viewed on Internet Explorer.
Mozilla (and Netscape, the version on most of the linux machinces in
the lab) does not seem to work (it only displays the content of the files).
Last modified: Tue Mar 29 11:33:03 Mountain Standard Time 2005