UofCRuss
01-08-2009, 02:45 PM
I have another quick question, I am still working with the following XML file:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="output2.xsl" type="text/xsl" ?>
<schedule>
<course>
<faculty>ENCM</faculty>
<number>507</number>
<description>Comp Aided Des Inte Circuits</description>
<lecutre>
<instructor>Laleh Behjat</instructor>
<section>01</section>
<peoplesoft>32152</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>12:00</stime>
<etime>12:50</etime>
<location>ENE 322</location>
</lecutre>
<tutorial>
<instructor>Laleh Behjat</instructor>
<section>01</section>
<peoplesoft>32153</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>16:00</stime>
<etime>16:50</etime>
<location>ENE 322</location>
</tutorial>
</course>
<course>
<faculty>ENEL</faculty>
<number>571</number>
<description>Digital Communications</description>
<lecutre>
<instructor>Geoffrey Messier</instructor>
<section>01</section>
<peoplesoft>17056</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>13:00</stime>
<etime>13:50</etime>
<location>ENA 003</location>
</lecutre>
<tutorial>
<instructor>Geoffrey Messier</instructor>
<section>01</section>
<peoplesoft>17060</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>11:00</stime>
<etime>11:50</etime>
<location>ICT 122</location>
</tutorial>
<laboratory>
<instructor>Geoffrey Messier</instructor>
<section>01</section>
<peoplesoft>17058</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>10:50</etime>
<location>ICT 215</location>
</laboratory>
</course>
<course>
<faculty>ENEE</faculty>
<number>555</number>
<description>Energy Environmental</description>
<lecutre>
<instructor>David William Keith</instructor>
<section>01</section>
<peoplesoft>32229</peoplesoft>
<days>
<monday>false</monday>
<tuesday>true</tuesday>
<wednesday>false</wednesday>
<thursday>true</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>11:00</stime>
<etime>12:15</etime>
<location>MFH 164</location>
</lecutre>
<tutorial>
<instructor>David William Keith</instructor>
<section>01</section>
<peoplesoft>32230</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>08:50</etime>
<location>TRB 102</location>
</tutorial>
</course>
<course>
<faculty>ENEL</faculty>
<number>567</number>
<description>Cmos Vlsi Engineering </description>
<lecutre>
<instructor>Karan Vir Inder Kaler</instructor>
<section>01</section>
<peoplesoft>18352</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>15:00</stime>
<etime>15:50</etime>
<location>ENA 227</location>
</lecutre>
<tutorial>
<instructor>Karan Vir Inder Kaler</instructor>
<section>01</section>
<peoplesoft>18358</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>08:50</etime>
<location>ENA 227</location>
</tutorial>
<laboratory>
<instructor>Karan Vir Inder Kaler</instructor>
<section>01</section>
<peoplesoft>18354</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>09:00</stime>
<etime>11:50</etime>
<location>ICT 216</location>
</laboratory>
</course>
<course>
<faculty>ENEL</faculty>
<number>589</number>
<description>4th Yr ENGG Des Proj, Part B</description>
<lecutre>
<instructor>Michel T Fattouche</instructor>
<section>01</section>
<peoplesoft>12900</peoplesoft>
<days>
<monday>false</monday>
<tuesday>true</tuesday>
<wednesday>false</wednesday>
<thursday>true</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>09:15</etime>
<location>CHC 119</location>
</lecutre>
<tutorial>
<instructor>Michel T Fattouche</instructor>
<section>01</section>
<peoplesoft>12902</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>18:00</stime>
<etime>19:50</etime>
<location>ENA 008</location>
</tutorial>
</course>
</schedule>
What I would like to do is Just have a list of all the courses in the XML as follows:
ENCM 507
ENEL 571
ENEE 555
Each of the above course codes would be linked, and when you click on the link it would change the information displayed to show more information about the class (the instructor, time, section etc).
How would I go about doing this? I don't understand how I change a XSL style sheet on the fly.
Thanks!
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="output2.xsl" type="text/xsl" ?>
<schedule>
<course>
<faculty>ENCM</faculty>
<number>507</number>
<description>Comp Aided Des Inte Circuits</description>
<lecutre>
<instructor>Laleh Behjat</instructor>
<section>01</section>
<peoplesoft>32152</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>12:00</stime>
<etime>12:50</etime>
<location>ENE 322</location>
</lecutre>
<tutorial>
<instructor>Laleh Behjat</instructor>
<section>01</section>
<peoplesoft>32153</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>16:00</stime>
<etime>16:50</etime>
<location>ENE 322</location>
</tutorial>
</course>
<course>
<faculty>ENEL</faculty>
<number>571</number>
<description>Digital Communications</description>
<lecutre>
<instructor>Geoffrey Messier</instructor>
<section>01</section>
<peoplesoft>17056</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>13:00</stime>
<etime>13:50</etime>
<location>ENA 003</location>
</lecutre>
<tutorial>
<instructor>Geoffrey Messier</instructor>
<section>01</section>
<peoplesoft>17060</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>11:00</stime>
<etime>11:50</etime>
<location>ICT 122</location>
</tutorial>
<laboratory>
<instructor>Geoffrey Messier</instructor>
<section>01</section>
<peoplesoft>17058</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>10:50</etime>
<location>ICT 215</location>
</laboratory>
</course>
<course>
<faculty>ENEE</faculty>
<number>555</number>
<description>Energy Environmental</description>
<lecutre>
<instructor>David William Keith</instructor>
<section>01</section>
<peoplesoft>32229</peoplesoft>
<days>
<monday>false</monday>
<tuesday>true</tuesday>
<wednesday>false</wednesday>
<thursday>true</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>11:00</stime>
<etime>12:15</etime>
<location>MFH 164</location>
</lecutre>
<tutorial>
<instructor>David William Keith</instructor>
<section>01</section>
<peoplesoft>32230</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>false</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>08:50</etime>
<location>TRB 102</location>
</tutorial>
</course>
<course>
<faculty>ENEL</faculty>
<number>567</number>
<description>Cmos Vlsi Engineering </description>
<lecutre>
<instructor>Karan Vir Inder Kaler</instructor>
<section>01</section>
<peoplesoft>18352</peoplesoft>
<days>
<monday>true</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>true</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>15:00</stime>
<etime>15:50</etime>
<location>ENA 227</location>
</lecutre>
<tutorial>
<instructor>Karan Vir Inder Kaler</instructor>
<section>01</section>
<peoplesoft>18358</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>08:50</etime>
<location>ENA 227</location>
</tutorial>
<laboratory>
<instructor>Karan Vir Inder Kaler</instructor>
<section>01</section>
<peoplesoft>18354</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>09:00</stime>
<etime>11:50</etime>
<location>ICT 216</location>
</laboratory>
</course>
<course>
<faculty>ENEL</faculty>
<number>589</number>
<description>4th Yr ENGG Des Proj, Part B</description>
<lecutre>
<instructor>Michel T Fattouche</instructor>
<section>01</section>
<peoplesoft>12900</peoplesoft>
<days>
<monday>false</monday>
<tuesday>true</tuesday>
<wednesday>false</wednesday>
<thursday>true</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>08:00</stime>
<etime>09:15</etime>
<location>CHC 119</location>
</lecutre>
<tutorial>
<instructor>Michel T Fattouche</instructor>
<section>01</section>
<peoplesoft>12902</peoplesoft>
<days>
<monday>false</monday>
<tuesday>false</tuesday>
<wednesday>true</wednesday>
<thursday>false</thursday>
<friday>false</friday>
<saturday>false</saturday>
<sunday>false</sunday>
</days>
<stime>18:00</stime>
<etime>19:50</etime>
<location>ENA 008</location>
</tutorial>
</course>
</schedule>
What I would like to do is Just have a list of all the courses in the XML as follows:
ENCM 507
ENEL 571
ENEE 555
Each of the above course codes would be linked, and when you click on the link it would change the information displayed to show more information about the class (the instructor, time, section etc).
How would I go about doing this? I don't understand how I change a XSL style sheet on the fly.
Thanks!