[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Changing an html colour value

Subject: Re: Changing an html colour value
From: Aaron Johnson <Aaron2.Johnson@xxxxxxxxx>
Date: Tue, 21 Dec 2004 14:48:26 +0000
html select attributes
Gave that a go but I couldn't figure out how to use it.

I don't have a template for <td> as such...the td values come through the
xml, the only table values I have in the stylesheet is for the control menu
at the top of the page:

Stylesheet:

<?xml version='1.0' encoding='utf-8'?><xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:x="http://www.w3.org/1999/xhtml" exclude-result-prefixes="x">
    <xsl:output method="html" indent="yes" encoding="UTF-8"/>
    <xsl:param name="baseActionURL">baseActionURL_false</xsl:param>

    <xsl:param name="type">Grid</xsl:param>
    <xsl:param name="weeks">Semester 1</xsl:param>
    <xsl:param name="days">All Weekdays (Mon - Fri)</xsl:param>
    <xsl:param name="duration">08:30 - 18:30</xsl:param>

    <xsl:template match="/">
    <script language="javascript"
src="http://timetables.uwe.ac.uk:8080/SWS_Custom/common/js/0405/form.js"
type="text/javascript" xmlns:x="http://www.w3.org/1999/xhtml"/>
    <xsl:call-template name="form"/>
    <xsl:apply-templates select="//x:body"/>
</xsl:template>
    <xsl:template name="form">
    <h2>Timetable Selection:</h2>
    <form name="swsform" action="{$baseActionURL}#timetable" method="post">
        <table cellPadding="3" border="0">
            <tbody>
                <tr>
                    <td>Select Timetable Type:</td>
                    <td>
                        <select name="type">
                            <option>Grid</option>
                            <option>List, seperate days</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Select Week(s):</td>
                    <td>
                        <select name="weeks">
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                   
<option>.....................................................</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Select Day(s):</td>
                    <td>
                        <select name="days">
                            <option value="1-5">All Weekdays
(Mon-Fri)</option>
                            <option value="1-7">All Week (Mon-Sun)</option>
                            <option value="6-7">All Weekend
(Sat-Sun)</option>
                            <option value="1">Monday</option>
                            <option value="2">Tuesday</option>
                            <option value="3">Wednesday</option>
                            <option value="4">Thursday</option>
                            <option value="5">Friday</option>
                            <option value="6">Saturday</option>
                            <option value="7">Sunday</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Select Start and End Time:</td>
                    <td>
                        <select name="duration">
                            <option value="1-20">08:30 - 18:30</option>
                            <option value="1-25">08:30 - 21:00 (All
Day)</option>
                            <option value="1-8">08:30 - 12:30
(Morning)</option>
                            <option value="9-20">12:30 - 18:30
(Afternoon)</option>
                            <option value="21-25">18:30 - 21:00
(Evening)</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td colSpan="2">
                        <input type="submit" value="submit"/>
                        <script language="JavaScript"
type="text/javascript">
                // This method is called on submit and sets the
current position of the combos
                function runme() {
                    swsform.periodspos.value = swsform.periods.selectedIndex
;
                    swsform.dayspos.value = swsform.days.selectedIndex ;
                    swsform.weekspos.value = swsform.weeks.selectedIndex ;
                    swsform.stylepos.value = swsform.style.selectedIndex ;
                } // This method is called on startup and resumes
where runme left off
               
swsform.periods.options[swsform.periodspos.value].selected=true ;
                swsform.days.options[swsform.dayspos.value].selected=true ;
                swsform.weeks.options[swsform.weekspos.value].selected=true
;
                swsform.style.options[swsform.stylepos.value].selected=true
;
             </script>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
    <script language="JavaScript" type="text/javascript">
            BBSAddWeeksToHTML(document.swsform);
        </script>
</xsl:template>
    <xsl:template match="x:body">
    <hr/><xsl:copy-of select="x:table"/>
</xsl:template>

<!-- adjust table colours -->

</xsl:stylesheet>


XML:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title>SWSCUST BBS Student Individual</title>
  </head>

  <body>
    <!-- START REPORT HEADER -->

    <table border='0' cellspacing='0' width='100%'>
      <tr>
        <td>
          <table cellspacing='0' border='0' width='100%'>
            <col style="text-align: left" />
            <col style="text-align: center" />
            <col style="text-align: right" />

            <tr>
              <td>
              </td>

              <td>
              </td>

              <td>
              </td>
            </tr>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <table cellspacing='0' border='0' width='100%'>
            <col style="text-align: left" />
            <col style="text-align: center" />
            <col style="text-align: right" />

            <tr>
              <td>
              </td>

              <td>
              </td>

              <td>
              </td>
            </tr>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <table cellspacing='0' border='0' width='100%'>
            <col style="text-align: left" />
            <col style="text-align: center" />
            <col style="text-align: right" />

            <tr>
              <td>
              </td>

              <td>
              </td>

              <td>
              </td>
            </tr>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <table cellspacing='0' border='0' width='100%'>
            <col style="text-align: left" />
            <col style="text-align: center" />
            <col style="text-align: right" />

            <tr>
              <td>
                <table border='0' width='100%'>
                  <tr>
                    <td width='33%' align='left' valign='middle'>
                    <b>Student: Test, Student</b></td>

                    <td width='33%' align='center' valign='middle'>
                    <b>BA Business Administration Year 1</b></td>

                    <td width='33%' align='right' valign='middle'>
                    <b>Weeks: 9-20 (27 Sep 2004, 19 Dec
                    2004)</b></td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <!-- END REPORT HEADER -->

          <table cellspacing='0' border='1'>
            <!-- START COLUMN LABELS ONE -->

            <tr>
              <td>
              </td>

              <td bgcolor='#0000FF' colspan='1'>8:30</td>

              <td bgcolor='#0000FF' colspan='1'>9:00</td>

              <td bgcolor='#0000FF' colspan='1'>9:30</td>

              <td bgcolor='#0000FF' colspan='1'>10:00</td>

              <td bgcolor='#0000FF' colspan='1'>10:30</td>

              <td bgcolor='#0000FF' colspan='1'>11:00</td>

              <td bgcolor='#0000FF' colspan='1'>11:30</td>

              <td bgcolor='#0000FF' colspan='1'>12:00</td>

              <td bgcolor='#0000FF' colspan='1'>12:30</td>

              <td bgcolor='#0000FF' colspan='1'>13:00</td>

              <td bgcolor='#0000FF' colspan='1'>13:30</td>

              <td bgcolor='#0000FF' colspan='1'>14:00</td>

              <td bgcolor='#0000FF' colspan='1'>14:30</td>

              <td bgcolor='#0000FF' colspan='1'>15:00</td>

              <td bgcolor='#0000FF' colspan='1'>15:30</td>

              <td bgcolor='#0000FF' colspan='1'>16:00</td>

              <td bgcolor='#0000FF' colspan='1'>16:30</td>

              <td bgcolor='#0000FF' colspan='1'>17:00</td>

              <td bgcolor='#0000FF' colspan='1'>17:30</td>

              <td bgcolor='#0000FF' colspan='1'>18:00</td>
            </tr>
            <!-- END COLUMN LABELS ONE -->
            <!-- START ROW OUTPUT -->

            <tr>
              <td rowspan='1' bgcolor='#0000FF'>Mon</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMAC33-20-1
                    L/01</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>2B025</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9-20, 26-33,
                    37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>
                    BBS-IND-SAC/01</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>3B067</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMAC33-20-1
                    T/04</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>3B056</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>10-20,
                    26-33, 37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='3' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UFQEEQ-20-1
                    T/02</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>3C04</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9-20, 26-33,
                    37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>
            </tr>

            <tr>
              <td rowspan='1' bgcolor='#0000FF'>Tue</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMOCA8-20-1
                    T(S1)/03</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>3B056</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>10-20</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMPC4V-20-1
                    T/02</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>3B056</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>10-20,
                    26-33, 37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMOCA8-20-1
                    L/01</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>2B025</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9-20, 26-33,
                    37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMSCBQ-20-1
                    L/01(jaa)</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>2B025</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9-20, 26-33,
                    37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>
            </tr>

            <tr>
              <td rowspan='1' bgcolor='#0000FF'>Wed</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>
            </tr>

            <tr>
              <td rowspan='1' bgcolor='#0000FF'>Thu</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMMC95-20-1
                    L/01jab</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>2B025</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9-20, 26-33,
                    37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMMC95-20-1
                    T S1/03</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>4D29b</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>10-20</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>Blackbd:
                    4D29/14</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>4D29b</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>
            </tr>

            <tr>
              <td rowspan='1' bgcolor='#0000FF'>Fri</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMPC4V-20-1
                    L/02</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>2D67</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>9-20, 26-33,
                    37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td colspan='2' rowspan='1'>
                <!-- START OBJECT-CELL -->

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>UMSCBQ-20-1
                    T/05(jab)</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>2B067</td>
                  </tr>
                </table>

                <table bgcolor='#C0C0C0' cellspacing='0' border='0'
                width='100%'>
                  <col style="text-align: left" />

                  <tr>
                    <td align='left' bgcolor='#C0C0C0'>10-20,
                    26-33, 37-40</td>
                  </tr>
                </table>
                <!-- END OBJECT-CELL -->
              </td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>

              <td>&#160;</td>
            </tr>
            <!-- END ROW OUTPUT -->
          </table>
          <!-- START REPORT FOOTER -->

          <table border='0' cellspacing='0' width='100%'>
            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>

            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>

            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>

            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>

            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>

            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                      <table border='0' width='100%'>
                        <tr>
                          <td width='33%' align='left'
                          valign='middle'><a
                          href="javascript:window.history.back(-1);"
                           onmouseover="status='Back to previous
page'; return true;"
                           onmouseout="status=''; return true;">&lt;&lt;
                          Back</a></td>

                          <td width='33%' align='center'
                          valign='middle'><a
                          href="javascript:window.print();"
                          onmouseover="status='Print this page'; return
true;"
                           onmouseout="status=''; return true;">Print
                          Timetable</a></td>

                          <td width='33%' align='right'
                          valign='middle'>Date/Time: 15 Dec 2004
                          16:29</td>
                        </tr>
                      </table>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>

            <tr>
              <td>
                <table cellspacing='0' border='0' width='100%'>
                  <col style="text-align: left" />
                  <col style="text-align: center" />
                  <col style="text-align: right" />

                  <tr>
                    <td>
                      <table border='0' width='100%'>
                        <tr>
                          <td width='33%' align='left'
                          valign='middle'>Template: Student
                          Individual</td>

                          <td width='33%' align='center'
                          valign='middle'>
                          </td>

                          <td width='33%' align='right'
                          valign='middle'>
                          </td>
                        </tr>
                      </table>
                    </td>

                    <td>
                    </td>

                    <td>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <!-- END REPORT FOOTER -->
          <hr />
          <hr />

          <table width='100%' cellspacing='0' border='0'>
            <tr>
              <td>
              </td>

              <td align='center'><b>Scientia&#174; Web Server</b>
              for <b>Course Planner&#8482;</b> at <b>University of
              the West of England</b></td>

              <td align='right'>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </body>
</html>


This incoming email to UWE has been independently scanned for viruses and
any virus detected has been removed using McAfee anti-virus software

......................................................................

Aaron Johnson
GUI / XSLT development
Academic Technologies Group [ATG]
University of the West of England

ext: 81051
t: 0117 3281051 
www: http://atg.uwe.ac.uk/aaron
e: aaron2.johnson@xxxxxxxxx
......................................................................

......................................................................

SECURITY POLICY:

Please note that ATG will only accept 
e-mail attachments in the following
formats:

.doc,.gif,.jpg,.mdb,.png,.xls,.zip,.psd

...as a mac user I will accept files 
compressed using Dropstuff.
......................................................................

This communication is intended solely 
for the use of the individual(s) to whom 
it is addressed. Any opinions presented 
are those of the author and do not 
necessarily represent the University of 
the West of England, Bristol.
......................................................................



> From: Aaron Johnson <Aaron2.Johnson@xxxxxxxxx>
> Reply-To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Date: Tue, 21 Dec 2004 13:47:17 +0000
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject: Re:  Changing an html colour value
> 
> 
> Thanks for that David, I appreciate you help.
> 
> ......................................................................
> 
> Aaron Johnson
> GUI / XSLT development
> Academic Technologies Group [ATG]
> University of the West of England
> 
> ext: 81051
> t: 0117 3281051 
> www: http://atg.uwe.ac.uk/aaron
> e: aaron2.johnson@xxxxxxxxx
> ......................................................................
> 
> ......................................................................
> 
> SECURITY POLICY:
> 
> Please note that ATG will only accept
> e-mail attachments in the following
> formats:
> 
> .doc,.gif,.jpg,.mdb,.png,.xls,.zip,.psd
> 
> ...as a mac user I will accept files
> compressed using Dropstuff.
> ......................................................................
> 
> This communication is intended solely
> for the use of the individual(s) to whom
> it is addressed. Any opinions presented
> are those of the author and do not
> necessarily represent the University of
> the West of England, Bristol.
> ......................................................................
> 
> 
> 
>> From: David Carlisle <davidc@xxxxxxxxx>
>> Reply-To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>> Date: Tue, 21 Dec 2004 12:53:56 +0000 (GMT)
>> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>> Subject: Re:  Changing an html colour value
>> 
>> 
>>> Is it possible to change an html colour value coded into the source xml with
>>> xsl?
>> 
>> XSLT knows nothing about HTML so your question is really
>> "Is it possible to change the value of an attribute"
>> 
>> If your template for td goes
>> <xsl:apply-templates select="@*"/>
>> 
>> then you just want to copy most attributes so
>> 
>> <xsl:template match="@*">
>>  <xsl:copy-of select="."/>
>> </xsl:template>
>> 
>> but change this one
>> 
>> <xsl:template match="@bgcolor[.='#ffffff']">
>>   <xsl:attribute name="bgcolor">#999999</xsl:attribute>
>> </xsl:template>
>> 
>> Note that XSLT never updates the source document "in-place" so the
>> source isn't changed however the new document will have #999999
>> wherever the old one has #ffffff
>> 
>> David
>> 
>> 
>> 
>> ________________________________________________________________________
>> This e-mail has been scanned for all viruses by Star. The
>> service is powered by MessageLabs. For more information on a proactive
>> anti-virus service working around the clock, around the globe, visit:
>> http://www.star.net.uk
>> ________________________________________________________________________
>> 
>> 
>> 
>> This incoming email to UWE has been independently scanned for viruses and any
>> virus detected has been removed using McAfee anti-virus software
> 
> 
> 
> This email has been independently scanned for viruses and any virus detected 
> has been removed using McAfee anti-virus software
> 
> 
> 
> This incoming email to UWE has been independently scanned for viruses and any 
> virus detected has been removed using McAfee anti-virus software
> 



This email has been independently scanned for viruses and any virus detected has been removed using McAfee anti-virus software

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.