Einzelnen Beitrag anzeigen

Flare

Registriert seit: 26. Jan 2006
Ort: Leipzig
529 Beiträge
 
Delphi 7 Professional
 
#8

Re: Wieder mal Unterschiede in IE und FF

  Alt 23. Jan 2007, 16:10
Dann erweitere ich jetzt eben das Beispiel...
Dieser HTML-Code wird in ein XML-Dokument eingelesen und steht in einer XSL-Datei.

Der Anfang ist folgender:
Code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />

<xsl:template match="vp">
   <html>
      <head>
         <title><xsl:value-of select="kopf/titel"/></title>
      </head>
      <body topmargin="0" leftmargin="0" text="FFFFFF">
         <table border="0" cellpadding="0" cellspacing="0" width="400">
            <tr>
               <td>[img]table_01.gif[/img]</td>
               <td background="table_02.gif" height="24"></td>
               <td>[img]table_03.gif[/img]</td>
            </tr>
            <tr>
               <td background="table_04.gif" width="25"></td>
               <td background="table_bg.gif"><xsl:apply-templates /></td>
               <td background="table_05.gif" width="32"></td>
            </tr>
            <tr>
               <td>[img]table_06.gif[/img]</td>
               <td background="table_07.gif" height="26"></td>
               <td>[img]table_08.gif[/img]</td>
            </tr>
         </table>
      </body>
   </html>
</xsl:template>
Ist da jetzt eigentlich schon ein DOCTYPE mit dabei oder fehlt da noch einer? Ich kenne kich da noch nicht so aus


//Add: Problem gelöst!
Ich habe es jetzt so gemacht und auf einmal klappt es -.-
Code:
<html>
   <head>
      <title><xsl:value-of select="kopf/titel"/></title>
   </head>
   <body topmargin="0" leftmargin="0" text="FFFFFF">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
         <tr>
            <td background="table_01.gif" width="25" height="24"></td>
            <td background="table_02.gif" height="24"></td>
            <td background="table_03.gif" width="32" height="24"></td>
         </tr>
         <tr>
            <td background="table_04.gif" width="25"></td>
            <td background="table_bg.gif"><xsl:apply-templates /></td>
            <td background="table_05.gif" width="32"></td>
         </tr>
         <tr>
            <td background="table_06.gif" width="25" height="26"></td>
            <td background="table_07.gif" height="26"></td>
            <td background="table_08.gif" width="32" height="26"></td>
         </tr>
      </table>
   </body>
</html>

Flare
Willy Scheibel
  Mit Zitat antworten Zitat