<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
  <HTML>
    <BASEFONT FACE="Tahoma, Arail, Helvetica, Univers" SIZE="2" />
    <BODY TEXT="#000000" LINK="#6633FF" ALINK="#9966FF" VLINK="#6633FF" BGCOLOR="#FFFFFF" LEFTMARGIN="2" TOPMARGIN="2" LANGUAGE="javascript">
      <TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="0" BORDER="1" BORDERCOLOR="#0000AA">
        <TR>
          <TH COLSPAN="2" BGCOLOR="#0000AA">
            <DIV STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
                        font-size:12pt; color:white;
                        text-align:center;
                        font-weight:bold">
              Flash Cards!
            </DIV>
            <DIV STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
                        font-size:8pt; color:white;
                        text-align:center;">
              Generated from ASP Page
            </DIV>
          </TH>
        </TR>
        <TR>
          <TH BGCOLOR="#9999CC">
            <DIV STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
                        font-size:12pt; color:#0000AA;
                        text-align:center;
                        font-weight:bold">
              Question
            </DIV>
          </TH>
          <TH BGCOLOR="#9999CC">
            <DIV STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
                        font-size:12pt; color:#0000AA;
                        text-align:center;
                        font-weight:bold">
              Answer
            </DIV>
          </TH>
        </TR>
            <xsl:apply-templates select="//CARD" />
      </TABLE>
      
      <P>
      This web page is actuall an XML document that has an XSL style sheet applied to it.
      The XML document is one that is generated by an ASP page that pulls data from an Access
      database.  The XSL document is static, but is linked into the XML document dynamically at
      the users request.
      </P>
      
      <P>
      The XML document from the <A HREF="flashxml.asp">flashxml.asp</A> page.  The style sheet is
      <A HREF="flashcards.xsl">flashxml.xsl</A>.  If you call flashxml.asp by itself, you get
      raw XML.  If you call it with a "WITHSTYLE" parameter like this <A HREF="flashxml.asp?withstyle=yes">flashxml.asp?withstyle=yes</A>
      The active server page places the link to the style sheet into the XML document before sending it
      to the client.  The result is the document you are viewing now.
      </P>
      
      <DIV STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
                  font-size:8pt; margin-left:10px;
                  text-align:center">
        &#169; 2000 by Net Connex.
      </DIV>
    </BODY>
  </HTML>
</xsl:template>

<xsl:template match="CARD">
  <TR>
      <xsl:apply-templates select="QUESTION" />
      <xsl:apply-templates select="ANSWER" />
  </TR>
</xsl:template>

<xsl:template match="QUESTION">
  <TD STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
             font-size:8pt">
    <xsl:value-of />
  </TD>
</xsl:template>

<xsl:template match="ANSWER">
  <TD STYLE="font-family:Verdana,Tahoma,Arial,sans-serif; 
             font-size:8pt">
    <xsl:value-of />
  </TD>
</xsl:template>

</xsl:stylesheet>