SUITE : XSLT : representation HTML en tableau double entree

samy sayag <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Re-bonjour a tous,
  
 Bon alors après acharnement :
 ceci marche sous IE (6.0.2900) mais pas sous  FireFox !
 Donc je présume que je dois faire un truc qui  marche pas...
 Est ce que quelqu'un aurait une idée pour que ça marche sous firefox
  
 Merci d'avance 
  
  
 <?xml version="1.0"  encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
 <xsl:template match="/">
   <html>
  <br />
  <br />
   <body>
  <xsl:call-template name="LoiBeta" />
   </body>
  </html>
</xsl:template>
  
 <xsl:template  name="LoiBeta">
 <h3>
 Loi Bêta :
 </h3>
 <table  border="1" cellspacing = "0" width="90%">
 <tr align =  "left">
  <th>
  Paramètres
  </th>
  <xsl:call-template  name = "titre"/>  
 </tr>
 <xsl:call-template name =  "ligneTabLoiBeta"/>
 </table>
</xsl:template>
  
 <xsl:template name =  "ligneTabLoiBeta">
<xsl:for-each  select="/new_output/Beta_Law/Leaf/*">
<xsl:variable name= "var1"  select="name(.)"/>
 <tr>
 <td>
 <xsl:value-of select  = "$var1"/>
 </td>
 <td>
 <xsl:value-of select =  "self::node()"/>
 </td>
 <td>
 <xsl:value-of select =  "parent::node()/following-sibling::node()[position() = 1]/*[name() =  $var1]"/>
 </td>
 <td>
 <xsl:value-of select =  "parent::node()/following-sibling::node()[position() =2]/*[name() =  $var1]"/>
 </td>
 <td>
 <xsl:value-of select =  "parent::node()/following-sibling::node()[position() =3]/*[name() =  $var1]"/>
 </td>
 <td>
 <xsl:value-of select =  "parent::node()/following-sibling::node()[position() =4]/*[name() =  $var1]"/>
 </td>
 </tr>
</xsl:for-each>
</xsl:template>
  
 <xsl:template name =  "titre">
<xsl:for-each  select="new_output/Beta_Law/node()">
 <td>
 <xsl:value-of  select =  "name(self::node())"/>
 </td>
</xsl:for-each>
</xsl:template>
  
 </xsl:stylesheet>

 __________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.