title: Match element XSL
body: <p>Heres my style sheet </p>
  
  <pre><code>&lt;xsl:stylesheet version='1.0' xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:key name="movie"/&gt;
  &lt;xsl:template match="/"&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Top American Comedies&lt;/title&gt;
    &lt;link href="comedy.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h2&gt;The Top American Comedy Films&lt;/h2&gt;
  
    &lt;table&gt;
    &lt;tr&gt;
        &lt;th&gt;Rank&lt;/th&gt;
        &lt;th&gt;Movie&lt;/th&gt;
        &lt;th&gt;Votes&lt;/th&gt;
        &lt;th&gt;%&lt;/th&gt;
    &lt;/tr&gt;
  
    &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Heres my XML</p>
  
  <pre><code>  &lt;?xml-stylesheet type="text/xsl" href="comtxt.xsl" ?&gt;
    &lt;poll&gt;
   &lt;ballot id="b1"&gt;
   &lt;movie&gt;A FISH CALLED WANDA (1988)&lt;/movie&gt;
   &lt;movie&gt;ADAM'S RIB (1949)&lt;/movie&gt;
    &lt;movie&gt;ANNIE HALL (1977)&lt;/movie&gt;
   &lt;movie&gt;BEING THERE (1979)&lt;/movie&gt;
   &lt;movie&gt;BORN YESTERDAY (1950)&lt;/movie&gt;
   &lt;movie&gt;CITY LIGHTS (1931)&lt;/movie&gt;
   &lt;movie&gt;DR. STRANGELOVE (1964)&lt;/movie&gt;
   &lt;movie&gt;GOOD MORNING, VIETNAM (1987)&lt;/movie&gt;
   &lt;movie&gt;HIS GIRL FRIDAY (1940)&lt;/movie&gt;
   &lt;movie&gt;M*A*S*H (1970)&lt;/movie&gt;
   &lt;movie&gt;MOONSTRUCK (1987)&lt;/movie&gt;
   &lt;movie&gt;NATIONAL LAMPOON'S ANIMAL HOUSE (1978)&lt;/movie&gt;
   &lt;movie&gt;SILVER STREAK (1976)&lt;/movie&gt;
   &lt;movie&gt;SOME LIKE IT HOT (1959)&lt;/movie&gt;
   &lt;movie&gt;THE GENERAL (1927)&lt;/movie&gt;
   &lt;movie&gt;THE GRADUATE (1967)&lt;/movie&gt;
   &lt;movie&gt;THE ODD COUPLE (1968)&lt;/movie&gt;
   &lt;movie&gt;THE SEVEN YEAR ITCH (1955)&lt;/movie&gt;
   &lt;movie&gt;TO BE OR NOT TO BE (1942)&lt;/movie&gt;
   &lt;movie&gt;WHAT'S UP, DOC? (1972)&lt;/movie&gt;
   &lt;/ballot&gt;
   &lt;ballot id="b2"&gt;
   &lt;movie&gt;A DAY AT THE RACES (1937)&lt;/movie&gt;
   &lt;movie&gt;A SHOT IN THE DARK (1964)&lt;/movie&gt;
   &lt;movie&gt;AMERICAN GRAFFITI (1973)&lt;/movie&gt;
   &lt;movie&gt;BALL OF FIRE (1941)&lt;/movie&gt;
   &lt;movie&gt;BLAZING SADDLES (1974)&lt;/movie&gt;
   &lt;movie&gt;CADDYSHACK (1980)&lt;/movie&gt;
   &lt;movie&gt;DR. STRANGELOVE (1964)&lt;/movie&gt;
   &lt;movie&gt;GHOSTBUSTERS (1984)&lt;/movie&gt;
   &lt;movie&gt;HIS GIRL FRIDAY (1940)&lt;/movie&gt;
   &lt;movie&gt;IT'S A MAD MAD MAD MAD WORLD (1963)&lt;/movie&gt;
   &lt;movie&gt;MODERN TIMES (1936)&lt;/movie&gt;
   &lt;movie&gt;NATIONAL LAMPOON'S ANIMAL HOUSE (1978)&lt;/movie&gt;
   &lt;movie&gt;SHAMPOO (1975)&lt;/movie&gt;
   &lt;movie&gt;SOME LIKE IT HOT (1959)&lt;/movie&gt;
   &lt;movie&gt;THE AWFUL TRUTH (1937)&lt;/movie&gt;
   &lt;movie&gt;THE GRADUATE (1967)&lt;/movie&gt;
   &lt;movie&gt;THE ODD COUPLE (1968)&lt;/movie&gt;
   &lt;movie&gt;THE PRODUCERS (1968)&lt;/movie&gt;
   &lt;movie&gt;THIS IS SPINAL TAP (1984)&lt;/movie&gt;
   &lt;movie&gt;TOPPER (1937)&lt;/movie&gt;
   &lt;/ballot&gt;
   &lt;ballot id="b3"&gt;
   &lt;movie&gt;A NIGHT AT THE OPERA (1935)&lt;/movie&gt;
   &lt;movie&gt;AIRPLANE! (1980)&lt;/movie&gt;
   &lt;movie&gt;ARSENIC AND OLD LACE (1944)&lt;/movie&gt;
   &lt;/ballot&gt;
   &lt;/poll&gt;
  </code></pre>
  
  <p>Heres the error I get can someone give me an example of what it should like. I know it must be something stupid but i am drawing a blank.</p>
  
  <pre><code> Element must have a match attribute
   xsl:key
  </code></pre>