XSL and HTML Table

Subject: XSL and HTML Table
From: "Gianluca Legittimo" <g_legittimo@xxxxxxxxxxx>
Date: Thu, 09 Sep 1999 06:31:05 PDT
I've tried to put <Table> tag before <xsl-for-each> tag but the problem persists.
here are the file (.xml , .xsl) i'm trying to display in IE5.


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="XMLprova3.xsl"?>
<DOCUMENT>
 <PFRAME>
  <BLOCK>
   <Title>
     Theory and Applications of Agnostic PAC-Learning with Small Decision Trees
   </Title>
  </BLOCK>
  <BLOCK>
   <AUTHORS pos="zero">
    Peter Auer*
    Institute for Theoretical Computer Science
    Technische Universitaet Graz
    A-8010 Graz, Austria
    pauer@xxxxxxxxxxxxxxxxx</AUTHORS>
  </BLOCK>
  <BLOCK>
   <Title>
    Theory and Applications 2
   </Title>
  </BLOCK>
  <BLOCK>
   <AUTHORS pos="uno">
     Wolfgang Maass
     Institute for Theoretical Computer Science
     Technische Universitaet Graz
     A-8010 Graz, Austria
     maass@xxxxxxxxxxxxxxxxx</AUTHORS>
  </BLOCK>
 </PFRAME>
</DOCUMENT>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/TR/WD-xsl'>
<xsl:template > 
  <xsl:apply-templates/> 
</xsl:template>
<xsl:template match='/'>
<HTML>
<BODY STYLE="background-color=#EEEFFF">

<TABLE WIDTH="100%" border="1" >
<xsl:for-each select="DOCUMENT/PFRAME/BLOCK">
  <TR>
    <TD WIDTH="2%"></TD>
    <TD WIDTH="97%">
    <hr/>
      <P ALIGN="CENTER">
      <FONT SIZE="4">
      
        <xsl:value-of select="Title"/>
        
      </FONT>
      </P>
      <hr/>
    </TD>
    <TD></TD>
  </TR>
  </xsl:for-each>
</TABLE>

<BR/><BR/><BR/><BR/>

<TABLE border="1"  WIDTH="100%">
<xsl:for-each select="DOCUMENT/PFRAME/BLOCK">
  <TR>
    <TD border="1" WIDTH="35%" VALIGN="TOP">
      <P ALIGN="CENTER">
      <FONT SIZE="2">
      
        <xsl:value-of select="AUTHORS"/>
         
         <xsl:choose>
          <xsl:when test='*[@pos="zero"]'>
            <xsl:apply-templates select="text()"/>
          </xsl:when>
         </xsl:choose>
         
      </FONT>
      </P>
    </TD>
   
    <TD>ciao</TD>
    <TD border="1" WIDTH="35%" VALIGN="TOP">
      <P ALIGN="CENTER">
      <FONT SIZE="2">
      
        <xsl:value-of select="AUTHORS"/>
         
         <xsl:choose>
            <xsl:when test='*[@pos="uno"]'>
              <xsl:apply-templates select="text()"/>
            </xsl:when>
         </xsl:choose>
         
      </FONT>
      </P>
      
    </TD>
   
  </TR>
  </xsl:for-each>
</TABLE>
    

</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>      
Current Thread