Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


E-learning website with XML/XSL

From: pradeep <pradeep.thekkottil@-----.--->
To: NULL
Date: 4/1/2009 5:34:00 AM
The below post I have also posted in a different group (XSLT), but
didn't get any reply yet, thought I would also post it in this group.
I hope this is appropriate.

Hello Everyone

First of all I should say that I just started working with XML-XSL. So
please forgive me if I'm asking too much for a newbie.

My task is to create an e-learning website using XML/XSL. Below you
can see the main structure of my xml file. The root element is
'elearning'. It contains many courses. Each course have a small
summary, an agenda, and chapters. The sub-element 'chapters' contain
many 'chapter' elements.

Now the part which I wanted to achieve and thats what I want to know
from you guys, is that the whole course should be divided into many
pages. First page should contain the elements from summary, second
page with agenda (like shown below in a table), and rest of the pages
with contents and exercises from each chapter. Each page should
somehow only display 'part' of this main.xml. And I should be able to
also navigate through pages using 'Previous' and 'Next' links.

Is it possible with just one XSL file? Or one for summary, one for
agenda and one for displaying chapters? If so how could I include many
xsl files in the main.xml?

After writing all these, I also think I'm asking too much. I hope I
have explained clearly. Otherwise please ask me. Could someone help
me? I would be very thankful.

Agenda page
---------------------------------------------------------------------------=
=AD--------------------------------------
| Week |  Theory                           |
Lab                                                       |
| 1        | XML-Talk First Contact    |  XML Playing around, Hallo
World            |
| 2        | XML-Intro, XML-DTD        | Question-Answer, Halloworld-
XML, Book  |
---------------------------------------------------------------------------=
=AD--------------------------------------

XML (main.xml)
---------------------------------------------------------------------------=
=AD-----------------------
<?xml version=3D"1.0" encoding=3D"ISO-8859-1"?>
<?xml-stylesheet type=3D"text/xsl" href=3D"xml.xsl"?>
<elearning>
<course id=3D"1" category=3D"programming">

	<summary>
		<title>XML Tutorial</title>
		<class>ST2009</class>
		<start-date>09.01.2009</start-date>
		<day>Friday</day>
		<time>08:15-10:45</time>
		<prerequisites>Experience with a programming or scripting language,
such as Java, JavaScript, VB, C++, Java or C# is helpful but not
necessary.</prerequisites>
		<url>http://web.test.ch/personalweb/pradeep/xml/</url>
	</summary>

	<agenda>
		<week nr=3D"1" chapters=3D"1"/>
		<week nr=3D"2" chapters=3D"2,3"/>
	</agenda>

	<chapters>
		<chapter nr=3D"1">
			<title>XML-Talk First Contact</title>
			<content>g dsgsdgsd gf dsgsdfg dfgsd fgs dgfs dfg sdfg sdfg sdfgsg</
content>
			<exercise link=3D"xml-talk.zip">XML Playing around</exercise>
			<goal>Understand how the XML auction is working! this is really
enough! How the data are stored? How the presentation is done? How the
control is working?</goal>
		</chapter>
		<chapter nr=3D"2">
			<title>XML-Intro</title>
			<content>f asfas fasdf saf as fsaf saffas fsafsf</content>
			<exercise link=3D"Exercice%202.mht">Fragen-Antwort</exercise>
			<exercise link=3D"Hallo.xml">Hallo World</exercise>
			<goal>Understand the advantages and disadvantage of XML. Be able to
realize your first XML document. Understand the differents parts of an
XML document!</goal>
		</chapter>
		<chapter nr=3D"3">
			<title>XML-DTD</title>
			<content>vbvcbvbnvbnvbncvnncvbnn nn cvnc vnb
cvnnvbvcbvbnvbnvbncvnncvbnn</content>
			<exercise link=3D"hello_xml_xsl.mht">Halloworld-XML</exercise>
			<exercise link=3D"book.xml">Book</exercise>
			<goal>Understand DTD</goal>
		</chapter>
		<!-- further chapters -->
	</chapters>
</course>
<!-- further courses -->
</elearning>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent