P
pradeep
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
-----------------------------------------------------------------------------------------------------------------
| Week | Theory |
Lab |
| 1 | XML-Talk First Contact | XML Playing around, Hallo
World |
| 2 | XML-Intro, XML-DTD | Question-Answer, Halloworld-
XML, Book |
-----------------------------------------------------------------------------------------------------------------
XML (main.xml)
--------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="xml.xsl"?>
<elearning>
<course id="1" category="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="1" chapters="1"/>
<week nr="2" chapters="2,3"/>
</agenda>
<chapters>
<chapter nr="1">
<title>XML-Talk First Contact</title>
<content>g dsgsdgsd gf dsgsdfg dfgsd fgs dgfs dfg sdfg sdfg sdfgsg</
content>
<exercise link="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="2">
<title>XML-Intro</title>
<content>f asfas fasdf saf as fsaf saffas fsafsf</content>
<exercise link="Exercice%202.mht">Fragen-Antwort</exercise>
<exercise link="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="3">
<title>XML-DTD</title>
<content>vbvcbvbnvbnvbncvnncvbnn nn cvnc vnb
cvnnvbvcbvbnvbnvbncvnncvbnn</content>
<exercise link="hello_xml_xsl.mht">Halloworld-XML</exercise>
<exercise link="book.xml">Book</exercise>
<goal>Understand DTD</goal>
</chapter>
<!-- further chapters -->
</chapters>
</course>
<!-- further courses -->
</elearning>
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
-----------------------------------------------------------------------------------------------------------------
| Week | Theory |
Lab |
| 1 | XML-Talk First Contact | XML Playing around, Hallo
World |
| 2 | XML-Intro, XML-DTD | Question-Answer, Halloworld-
XML, Book |
-----------------------------------------------------------------------------------------------------------------
XML (main.xml)
--------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="xml.xsl"?>
<elearning>
<course id="1" category="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="1" chapters="1"/>
<week nr="2" chapters="2,3"/>
</agenda>
<chapters>
<chapter nr="1">
<title>XML-Talk First Contact</title>
<content>g dsgsdgsd gf dsgsdfg dfgsd fgs dgfs dfg sdfg sdfg sdfgsg</
content>
<exercise link="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="2">
<title>XML-Intro</title>
<content>f asfas fasdf saf as fsaf saffas fsafsf</content>
<exercise link="Exercice%202.mht">Fragen-Antwort</exercise>
<exercise link="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="3">
<title>XML-DTD</title>
<content>vbvcbvbnvbnvbncvnncvbnn nn cvnc vnb
cvnnvbvcbvbnvbnvbncvnncvbnn</content>
<exercise link="hello_xml_xsl.mht">Halloworld-XML</exercise>
<exercise link="book.xml">Book</exercise>
<goal>Understand DTD</goal>
</chapter>
<!-- further chapters -->
</chapters>
</course>
<!-- further courses -->
</elearning>