Take your earlier menu or curriculum XML file, and make a transformation (XSLT and a style sheet CSS) to display the content with a browser. Preferably add images or sorting.
Create your individual XML application based on a teacher assigned task. The resulting application should include
Develop the layout using tables, images, etc. to make it look appealing.
Alternatives, confim with the teacher:
If you use both XSLT and CSS
styles, you either include the CSS as an internal style to the
resulting HTML or call an external style from the resulting HTML
file in <head> section.
<link rel="stylesheet" type="text/css" href="external.css">
To attach a picture to the
resulting HTML, refer to it in the xslt:
<img src="{@COVER}" />
and in the original XML you would use an attribute :
<CD NAME="Get Back" COVER="pict3.jpg">
The animals.xml in the example 3 would have a change:
<animal>
<name picture="penny.jpg">Penny</name>
<species>cat</species>
</animal>
and the stylesheet needs to be modified like this:
<td><img src="{name/@picture}" /></td></tr>
A link looks in the XSLT:
<a href="{link-url}" target="_top">
<xsl:value-of select="link-name" /> </a>
and in the XML file:
<link>
<link-name>info</link-name>
<link-url>http://www.w3c.org</link-url>
</link>
Created by: Jaana Holvikivi Updated:6.12.2013 |