www.webdeveloper.com
Results 1 to 6 of 6

Thread: How do I create a student timetable in xml?

  1. #1
    Join Date
    Apr 2007
    Posts
    3

    Unhappy How do I create a student timetable in xml?

    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.

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    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.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Apr 2007
    Posts
    3
    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.
    Attached Files Attached Files

  4. #4
    Join Date
    May 2007
    Location
    Ireland
    Posts
    9
    I think just using tables in X/HTML would be easier.

  5. #5
    Join Date
    Apr 2007
    Posts
    3
    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>

  6. #6
    Join Date
    Mar 2011
    Posts
    4

    Thumbs up Hi bro

    Hey bro i don't have any ideas from this ..can u sent me the xsl or xhtml file

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles