<generator name='Yahoo! Finance Stock Quote' xmlns='http://www.mozilla.org/microsummaries/0.1'>

  <pages>
    <include>^http://finance\.yahoo\.com/q\?.*s=[a-zA-Z0-9%]+</include>
  </pages>

  <template>
    <transform version='1.0' xmlns='http://www.w3.org/1999/XSL/Transform'>
      <output method='text'/>
      <template match='/'>

        <!-- The stock ticker symbol.  The symbol is only available as part of
           - a text node that also contains the full company name, but the symbol
           - is in parentheses in that node, so we use substring functions
           - to extract the symbol from within the parentheses.
           -->
        <value-of select='substring-before(substring-after(string(id(&apos;yfncsubtit&apos;)/tbody/tr/td[1]/b), &apos;(&apos;), &apos;)&apos;)'/>

        <text>: </text>

        <!-- The stock price.  The location of this value can fluctuate,
           - but it is always labeled "Last Trade:", so we look for that label
           - and use the value in the next cell.
           -->
        <value-of select='//table/tbody/tr[td=&apos;Last Trade:&apos;]/td[2]'/>
      </template>
    </transform>
  </template>

</generator>
