title: How Do I Anchor tag in XSLT?
body: <p>I am lost as how to introduce anchor tag links to my code. This is not familiar territory as it is just an idea I came up with to make this project a little easier. So when I click the link up in the header table it will page jump to the picture of each tour. Just like how wikipedia does it for their sections of text. I created the names to be referenced by but I don't understand how it can be linked as I used a for-each loop to get the correct picture to display with each tour. Help is greatly appreciated. </p>
  
  <p>XML </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="tour.xsl" ?&gt;
  &lt;tours&gt;
     &lt;tour&gt;
        &lt;description&gt;
           &lt;p&gt;&lt;i&gt;Travel Scotland!&lt;/i&gt; Goes south to England and the Lake District.
           The tour leaves departs from London, taking an overnight train to Windemere,
           your gateway to the Lake District. Take some time to peruse the local
           shops or hike the mountains, following in the footsteps of William
           Wordsworth. With a week in the Lake District, you'll have plenty of time
           to discover all of its charms and wonders.&lt;/p&gt;
           &lt;p&gt;From the Lake District, we go to York for two fun-filled days. Tour the
           awesome York Minster, one of the most beautiful cathedrals in Europe. York
           is also home to underground ruins of one of the earliest Roman settlements
           in Britain.&lt;/p&gt;
           &lt;p&gt;The tour concludes with two days of sight-seeing and fun in London.&lt;/p&gt;
        &lt;/description&gt;
        &lt;tourName&gt;The Lake District&lt;/tourName&gt;
        &lt;tourPhoto&gt;Lake.jpg&lt;/tourPhoto&gt;
        &lt;tourGuide&gt;Mary Taylor&lt;/tourGuide&gt;
        &lt;tdEmail&gt;mailto:mtaylor@tscotland.com&lt;/tdEmail&gt;
        &lt;tourStart&gt;6/15/2003&lt;/tourStart&gt;
        &lt;tourEnd&gt;6/19/2003&lt;/tourEnd&gt;
        &lt;itinerary&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;1&lt;/dayNumber&gt;
              &lt;plan&gt;London arrival&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;2&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Windemere&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;3&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in Windemere&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;4&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Ambleside&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;5&lt;/dayNumber&gt;
              &lt;plan&gt;Hiking tour to Grasmere&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;6&lt;/dayNumber&gt;
              &lt;plan&gt;Boating trip on Lake Windemere&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;7&lt;/dayNumber&gt;
              &lt;plan&gt;Free day&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;8&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Keswick and Honister Pass&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;9&lt;/dayNumber&gt;
              &lt;plan&gt;Return to Ambleside&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;10&lt;/dayNumber&gt;
              &lt;plan&gt;Train to York&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;11&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in York&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;12&lt;/dayNumber&gt;
              &lt;plan&gt;Train to London&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;13&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in London&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;14&lt;/dayNumber&gt;
              &lt;plan&gt;London departure&lt;/plan&gt;   
           &lt;/day&gt;
        &lt;/itinerary&gt;   
     &lt;/tour&gt;
     &lt;tour&gt;
       &lt;description&gt;
           &lt;p&gt;Join &lt;i&gt;Travel Scotland!&lt;/i&gt; For a two-week tour of the Hebrides. The trip
           takes you to four of the beautiful Hebridean islands, including Fingal's
           Cave, featured in Medelssohn's &lt;i&gt;The Hebrides&lt;/i&gt; Overture.&lt;/p&gt;
           &lt;p&gt;The tour starts with a train tour of the Highlands from Glasgow to Fort
           William. After an overnight stay in Fort William, we leave by train and ferry
           to the Isle of Skye. While there, you'll have a chance to tour Dunvegan
           Castle and visit the Black Cullins in southern Skye. A boat trip to Mallaig
           follows and tour through Moidart where we'll visit the most western point in
           Great Britain.&lt;/p&gt;
           &lt;p&gt;No tour of the Hebrides can be complete with a visit to Iona and Fingal's
           Cave. Plenty of time will be available for touring the abbey at Iona and 
           touring the ruins. Pay your respects at the grave of St. Columba who, as
           the legends tell it, was a disciple of St. Patrick and brought Christianity
           to the Highlands.&lt;/p&gt;
           &lt;p&gt;You'll spend the next three days in Oban and on the Isle of Jura. Be sure
           to take some time to sample its world-famous scotch! The
           trip concludes with two days in Glasgow.&lt;/p&gt;
        &lt;/description&gt;
        &lt;tourName&gt;The Hebrides&lt;/tourName&gt;
        &lt;tourPhoto&gt;Hebrides.jpg&lt;/tourPhoto&gt;
        &lt;tourGuide&gt;Alan Simpson&lt;/tourGuide&gt;
        &lt;tdEmail&gt;mailto:asimpson@tscotland.com&lt;/tdEmail&gt;
        &lt;tourStart&gt;7/02/2003&lt;/tourStart&gt;
        &lt;tourEnd&gt;7/16/2003&lt;/tourEnd&gt;
        &lt;itinerary&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;1&lt;/dayNumber&gt;
              &lt;plan&gt;Glasgow arrival&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;2&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Fort William&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;3&lt;/dayNumber&gt;
              &lt;plan&gt;Train and boat ferry to the Isle of Skye&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;4&lt;/dayNumber&gt;
              &lt;plan&gt;Tour of Skye&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;5&lt;/dayNumber&gt;
              &lt;plan&gt;Boat trip to Mallaig, bus tour through Moidart&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;6&lt;/dayNumber&gt;
              &lt;plan&gt;Boat trip to the Isle of Mull&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;7&lt;/dayNumber&gt;
              &lt;plan&gt;Free day&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;8&lt;/dayNumber&gt;
              &lt;plan&gt;Tour of Iona and Fingal's Cave&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;9&lt;/dayNumber&gt;
              &lt;plan&gt;Boat trip to Oban&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;10&lt;/dayNumber&gt;
              &lt;plan&gt;Bus and boat tour to Jura&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;11&lt;/dayNumber&gt;
              &lt;plan&gt;Second day on Jura&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;12&lt;/dayNumber&gt;
              &lt;plan&gt;Bus tour to Glasgow&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;13&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in Glasgow&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;14&lt;/dayNumber&gt;
              &lt;plan&gt;Glasgow departure&lt;/plan&gt;   
           &lt;/day&gt;
        &lt;/itinerary&gt;   
     &lt;/tour&gt;
     &lt;tour&gt;
       &lt;description&gt;
           &lt;p&gt;The &lt;i&gt;Highlands Tour&lt;/i&gt; Continues to be our most popular tour. This
           two-week excursion takes you to some of the most awe-inspiring
           scenery in Scotland; yet provides plenty of shopping time and sight-seeing
           in the beautiful city of Edinburgh.&lt;/p&gt;
           &lt;p&gt;The trip begins with two days in Glencoe, the site of the famous
           massacre of the MacDonald clan by the Stewarts. Take some time to go hiking.
           Several movies have been filmed in Glencoe, including &lt;i&gt;Braveheart&lt;/i&gt; and
           &lt;i&gt;Highlander&lt;/i&gt;. Maybe you'll get a chance to be an extra in this year's
           production!&lt;/p&gt;
           &lt;p&gt;From Glencoe, the tour travels north, following the trail of Bonnie
           Prince Charlie to Glenfinnan. You'll also take a boat trip to view castle
           ruins along the Kyle of Lochalsh. A trip to Loch Ness follows. Perhaps
           you'll see Nessie!&lt;/p&gt;
           &lt;p&gt;For city-dwellers, you'll enjoy the next three days in Edinburgh. Do some
           shopping along the Royal Mile, or climb Arthur's Seat for a awesome view of
           the city. If you love castles, visit Edinburgh castle and Sterling castle too.&lt;/p&gt;
           &lt;p&gt;The tour concludes with a trip to Glasgow.&lt;/p&gt;
        &lt;/description&gt;
        &lt;tourName&gt;The Highlands&lt;/tourName&gt;
        &lt;tourPhoto&gt;Highland.jpg&lt;/tourPhoto&gt;
        &lt;tourGuide&gt;Geoff Rawlings&lt;/tourGuide&gt;
        &lt;tdEmail&gt;mailto:grawlings@tscotland.com&lt;/tdEmail&gt;
        &lt;tourStart&gt;7/07/2003&lt;/tourStart&gt;
        &lt;tourEnd&gt;7/21/2003&lt;/tourEnd&gt;
        &lt;itinerary&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;1&lt;/dayNumber&gt;
              &lt;plan&gt;Glasgow arrival&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;2&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Glencoe&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;3&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in Glencoe&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;4&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Fort William and Glenfinnan&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;5&lt;/dayNumber&gt;
              &lt;plan&gt;Boat ride through the Kyle of Lochalsh&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;6&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Loch Ness and Fort William&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;7&lt;/dayNumber&gt;
              &lt;plan&gt;Free day&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;8&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Aviemore and Pitlochry&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;9&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Edinburgh&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;10&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in Edinburgh&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;11&lt;/dayNumber&gt;
              &lt;plan&gt;Third day in Edinburgh&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;12&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Sterling&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;13&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Glasgow&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;14&lt;/dayNumber&gt;
              &lt;plan&gt;Glasgow departure&lt;/plan&gt;   
           &lt;/day&gt;
        &lt;/itinerary&gt;   
     &lt;/tour&gt;
     &lt;tour&gt;
       &lt;description&gt;
           &lt;p&gt;Do you like castles? The &lt;i&gt;Castles of Scotland Tour&lt;/i&gt; is for you. The
           tour visits 15 differents castles in central and northern Scotland. The tour
           starts with the famous Edinburgh Castle, and &lt;i&gt;Travel Scotland!&lt;/i&gt; has a
           special arrangement to visit parts of the castle normally closed to the
           public.&lt;/p&gt;
           &lt;p&gt;From Edinburgh you travel to Stirling Castle with breathtaking views of
           the River Forth as it divides Scotland's Highlands and Lowlands. Inverness
           is next on the Itinerary with a side trip to Culloden to view where the
           campaign of Bonnie Prince Charlie came to an end.&lt;/p&gt;
           &lt;p&gt;Look for Nessie from Castle Urquhart on the banks of Loch Ness. From there
           goes into the heart of the Highlands with trips to Fort William and Oban. We've
           made special plans to picnic by Castle Stalker near Glencoe.&lt;/p&gt;
           &lt;p&gt;No castle tour would be complete with a trip to Balmacara Castle on the
           Isle of Skye. While on Skye, we'll have a boat trip along the feet of the
           Black Cullins.&lt;/p&gt;
           &lt;p&gt;The tour concludes with two days back in Edinburgh for shopping, additional
           site-seeing, or just rest and relaxation.&lt;/p&gt;
        &lt;/description&gt;
        &lt;tourName&gt;Castles of Scotland&lt;/tourName&gt;
        &lt;tourPhoto&gt;Castles.jpg&lt;/tourPhoto&gt;
        &lt;tourGuide&gt;Alice Arthur&lt;/tourGuide&gt;
        &lt;tdEmail&gt;mailto:aarthur@tscotland.com&lt;/tdEmail&gt;
        &lt;tourStart&gt;8/01/2003&lt;/tourStart&gt;
        &lt;tourEnd&gt;8/15/2003&lt;/tourEnd&gt;
        &lt;itinerary&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;1&lt;/dayNumber&gt;
              &lt;plan&gt;Edinburgh arrival&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;2&lt;/dayNumber&gt;
              &lt;plan&gt;Tour of Edinburgh Castle&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;3&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Sterling Castle&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;4&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Inverness&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;5&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in Inverness&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;6&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Loch Ness and Fort William&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;7&lt;/dayNumber&gt;
              &lt;plan&gt;Free day&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;8&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Castle Stalker and Oban&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;9&lt;/dayNumber&gt;
              &lt;plan&gt;Trip to Glenfinnan, boat ride to the Isle of Skye&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;10&lt;/dayNumber&gt;
              &lt;plan&gt;Second day on Skye. Trip to Balmacara Castle&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;11&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Perth&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;12&lt;/dayNumber&gt;
              &lt;plan&gt;Train to Edinburgh&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;13&lt;/dayNumber&gt;
              &lt;plan&gt;Second day in Edinburgh&lt;/plan&gt;
           &lt;/day&gt;
           &lt;day&gt;
              &lt;dayNumber&gt;14&lt;/dayNumber&gt;
              &lt;plan&gt;Edinburgh departure&lt;/plan&gt;   
           &lt;/day&gt;
        &lt;/itinerary&gt;   
     &lt;/tour&gt;
  &lt;/tours&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is the XSLT:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="html" version="4.0"/&gt;
  
  &lt;!-- Start of root template --&gt;
  
  &lt;xsl:template match="/"&gt;
  &lt;html&gt;
  &lt;head&gt;
          &lt;title&gt;Chan Brothers&lt;/title&gt;
          &lt;link href="tour.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
          &lt;table border="2" align="center"&gt;
                  &lt;tr&gt;
                          &lt;th colspan="4"&gt;World Tour Inc. Tour List&lt;br/&gt;
                          &lt;img src="logo.png" align="center" width="100"&gt;&lt;/img&gt;
                          &lt;/th&gt;   
                  &lt;/tr&gt;
                  &lt;tr&gt;
                          &lt;td&gt; &lt;a href="#Lake"&gt;Lake District&lt;/a&gt; &lt;/td&gt;
                          &lt;td&gt; &lt;a href="#Hebrides"&gt;The Hebrides &lt;/a&gt; &lt;/td&gt;
                          &lt;td&gt; &lt;a href="#Highlands"&gt;The Highlands &lt;/a&gt; &lt;/td&gt;
                          &lt;td&gt; &lt;a href="#Castles"&gt;Castles of Scotland &lt;/a&gt; &lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
  &lt;xsl:apply-templates select="tours/tour"&gt;&lt;/xsl:apply-templates&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/xsl:template&gt;
  
  &lt;!-- End of root template --&gt;
  &lt;!-- Tour template --&gt;
  &lt;xsl:template match="tour"&gt;
  &lt;div id="content"&gt;
  &lt;h2&gt;
          &lt;xsl:value-of select="tourName" /&gt;
          (Tour Guide: &lt;xsl:value-of select="tourGuide" /&gt;)
  &lt;/h2&gt;
  &lt;xsl:for-each select="description/p[1]"&gt;
          &lt;p&gt;
          &lt;img src="{../../tourPhoto}"/&gt;
          &lt;xsl:value-of select="." /&gt;
          &lt;/p&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:for-each select="description/p[position() &amp;gt; 1]"&gt;
          &lt;p&gt;&lt;xsl:value-of select="." /&gt;&lt;/p&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:for-each select="tourStart"&gt;
          &lt;table border="2" align="center"&gt;
                  &lt;tr&gt;
                          &lt;th&gt;Start Date:&lt;/th&gt;
                          &lt;th&gt;&lt;xsl:value-of select="."/&gt;&lt;/th&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:for-each select="tourEnd"&gt;
          &lt;table border="2" align="center"&gt;
                  &lt;tr&gt;
                          &lt;th&gt;End Date:&lt;/th&gt;
                          &lt;th&gt;&lt;xsl:value-of select="."/&gt;&lt;/th&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:for-each select="tdEmail"&gt;
          &lt;table border="2" align="center"&gt;
                  &lt;tr&gt;
                          &lt;th&gt;Email:&lt;/th&gt;
                          &lt;th&gt;&lt;xsl:value-of select="."/&gt;&lt;/th&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:apply-templates select="itinerary" /&gt;
  &lt;/div&gt;
  &lt;/xsl:template&gt;
  &lt;!-- End Tour template --&gt;
  &lt;!-- Section templates --&gt;
  &lt;xsl:template match="itinerary"&gt;
  &lt;table border="3" align="center"&gt;
  &lt;tr&gt;
  &lt;th&gt;Day&lt;/th&gt;
  &lt;th&gt;Destination&lt;/th&gt;
  &lt;/tr&gt;
  &lt;th&gt;
  &lt;xsl:apply-templates select="day/dayNumber" /&gt;
  &lt;/th&gt;
  &lt;tr&gt;
  &lt;xsl:apply-templates select="plan" /&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="day|dayNumber"&gt;
  &lt;tr&gt;&lt;xsl:value-of select="." /&gt;&lt;/tr&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="plan"&gt;
  &lt;tr&gt;&lt;xsl:value-of select="." /&gt;&lt;/tr&gt;
  &lt;/xsl:template&gt;
  &lt;!-- End Section templates --&gt;
  &lt;/xsl:stylesheet&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Lastly my CSS</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body    
  h1, h2  {font-family: sans-serif; width: 640px}
  h1      {text-align: center; margin: -10px; padding: 0px}
  h2      {margin-top: -5px}
  div     {width: 700px; border: 1px solid black; margin: 10px; padding: 10px; background-color: cyan}
  p img   {width: 200px; float: left; margin: 0px 15px 0px 0px}
  p       {text-align: justify}
  table   {background-color: white; width: 400px}
  th      {font-family: sans-serif; color: navy}
  td      {text-align: center}
  #content {margin-left: auto ; margin-right: auto}</code></pre>
  </div>
  </div>
  </p>