Re: SUITE : XSLT : representation HTML en tableau double entree
Stéphane Bonhomme <[email protected]>
| Newsgroups | gmane.text.xml.french.tech |
|---|---|
| Message-ID | <[email protected]> |
Salut, http://waloo.homelinux.net/tests/samy.xml http://waloo.homelinux.net/tests/samy.xsl et voila ! Stephane. samy sayag wrote: >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 > >-- >Devenez redacteur <XML>fr et contribuez au developpement du >xml francophone (http://xmlfr.org/infos/redacteurs/) ! > >Liste de diffusion "[email protected]" (http://xmlfr.org). > >Cette liste est a votre disposition pour discuter en francais de >tout sujet technique lie a XML. > >Pour resilier votre abonnement, envoyez un message contenant >la commande "unsubscribe" a [email protected] >(mailto:[email protected]?Subject=unsubscribe) > >--------------------------------------------------------------------------------------- >Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. >Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > -- Stéphane Bonhomme -- Exselt Services Formations, Conseil et Réalisations en Ingénierie Documentaire, Technologies Web et Logiciels Libres [email protected] - http://www.exselt.com 04 76 17 09 40 / 06 88 57 27 08