Click to See Complete Forum and Search --> : How do I create a student timetable in xml?


shobz
04-30-2007, 03:00 PM
I have to create a student timetable in xml and I have no clue what to do. I am trying to figure out the markup language to use. I have to use my hardopy of the timetable and replicate it. Is there anyone here who can give me any guidance? I would really appreciate it. I have gone through all the tutorials and books.

Charles
05-01-2007, 06:43 AM
This sounds a lot like homework and you are usually better off doing it yourself. And no doubt there is some background to the assignment that you have left out but...

Basically you are making your own mark up language. Structure the data in what ever way makes sense to you. If your class has gotten as far as namespaces then there do exist some building blocks you can use, http://web.resource.org/rss/1.0/modules/event/ & http://www.w3.org/TR/rdfcal/ for example. But if you don't know what a namespace is don't worry about it. Think of XML as a blank piece of paper and get to work with your water colors.

shobz
05-01-2007, 10:58 AM
It is more like an assignment which I am struggling with. The thing is that I need to replicate my timetable. I have tried using a schema but i am not sure how to go ahead with it. I am posting a screenshot of my timetable along with some of the code. I only have a week to finish this and I am unable to do much. I also need to create a DTD file and an XSL/t file. anyone out there who can help. :(

UbuntuniX
05-03-2007, 08:53 AM
I think just using tables in X/HTML would be easier.

shobz
05-10-2007, 01:37 PM
i managed to make a timetable and now i dont know how i can transform it into an xsl/t sheet? can anyone help. i am posting the file so u can see my xml.

<?xml version="1.0"?><!DOCTYPE TIMETABLE [
<!ELEMENT TIME (#PCDATA)>
<!ATTLIST TIME ID ID #REQUIRED>
<!ELEMENT TIMESLOT (TIME)+>
<!ELEMENT LESSONCODE (#PCDATA)>
<!ELEMENT LESSONTYPE (#PCDATA)>
<!ELEMENT STARTTIME (#PCDATA)>
<!ELEMENT ENDTIME (#PCDATA)>
<!ELEMENT BUILDING (#PCDATA)>
<!ELEMENT DAY (#PCDATA|LESSONCODE|DAY|LESSONTYPE|STARTTIME|ENDTIME|BUILDING)*>
<!ATTLIST DAY ID CDATA "">
<!ELEMENT TIMETABLE (DAY,TIMESLOT,(DAY)+)>
]>
<?xml-stylesheet type="text/xsl" href="First version.xsl"?>

<TIMETABLE>
<DAY>
<DAY ID="D1"> MONDAY</DAY>
<DAY ID="D2"> TUESDAY</DAY>
<DAY ID="D3"> WEDNESDAY</DAY>
<DAY ID="D4">THURSDAY</DAY>
<DAY ID="D5">FRIDAY</DAY>
<DAY ID="D6">SATURDAY</DAY>
<DAY ID="D7">SUNDAY</DAY>
</DAY>
<TIMESLOT>
<TIME ID="H1">0900 AM</TIME>
<TIME ID="H2">0930 AM</TIME>
<TIME ID="H3">1000 AM</TIME>
<TIME ID="H4"> 1030 AM</TIME>
<TIME ID="H5"> 1100 AM</TIME>
<TIME ID="H6"> 1130 AM </TIME>
<TIME ID="H7"> 1200 PM</TIME>
<TIME ID="H8"> 1230 PM</TIME>
<TIME ID="H9"> 1300 PM</TIME>
<TIME ID="H10">1330 PM</TIME>
<TIME ID="H11">1400 PM</TIME>
<TIME ID="H12">1430 PM</TIME>
<TIME ID="H13">1500 PM</TIME>
<TIME ID="H14">1600 PM</TIME>
<TIME ID="H15">1630 PM</TIME>
<TIME ID="H16">1700 PM</TIME>
<TIME ID="H17">1730 PM</TIME>
</TIMESLOT>

<DAY ID="D1">


<LESSONCODE> CMT 3095 </LESSONCODE>
<LESSONTYPE> LECTURE </LESSONTYPE>
<STARTTIME> 0930 AM</STARTTIME>
<ENDTIME> 1100 AM</ENDTIME>
<BUILDING> COLLB C114</BUILDING>





<LESSONCODE> CCM 3060 </LESSONCODE>
<LESSONTYPE> LECTURE </LESSONTYPE>
<STARTTIME> 1100 AM </STARTTIME>
<ENDTIME> 1230 PM </ENDTIME>
<BUILDING> COLLB C115 </BUILDING>





<LESSONCODE> BIS 3051 </LESSONCODE>
<LESSONTYPE> LECTURE </LESSONTYPE>
<STARTTIME> 1300 PM</STARTTIME>
<BUILDING> COLLB C114</BUILDING>






<LESSONCODE> CMT 3095</LESSONCODE>
<LESSONTYPE> LABORATORY</LESSONTYPE>
<STARTTIME> 1600 PM </STARTTIME>
<ENDTIME> 1730 PM</ENDTIME>
<BUILDING> COLLB C126</BUILDING>



</DAY>

<DAY ID="D2">



<LESSONCODE> CCM 3060 </LESSONCODE>
<LESSONTYPE> SEMINAR </LESSONTYPE>
<STARTTIME> 1130 AM </STARTTIME>
<ENDTIME> 1300 PM </ENDTIME>
<BUILDING> COLLB C126</BUILDING>



</DAY>




<DAY ID="D4">



<LESSONCODE> BIS 3051 </LESSONCODE>
<LESSONTYPE> LABORATORY </LESSONTYPE>
<STARTTIME> 0930 AM</STARTTIME>
<ENDTIME> 1100 AM</ENDTIME>
<BUILDING> COLLB C121</BUILDING>



</DAY>






</TIMETABLE>

Millan4u1
03-10-2011, 05:04 PM
Hey bro i don't have any ideas from this ..can u sent me the xsl or xhtml file