[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL and HTML Table

Subject: XSL and HTML Table
From: "Gianluca Legittimo" <g_legittimo@xxxxxxxxxxx>
Date: Thu, 09 Sep 1999 06:31:05 PDT
td border
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.