J'ai un peu creusé l'histoire des embedded stylesheets, et ça marche pas mal!
- J'ai repris le code ... et ça fonctionne effectivement pas mal, .....sauf avec IE.
- Autre pb: même avec fireFox, je n'arrive pas à utiliser les <table> en sans perdre le stye:
ce code applique le style demandé:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml-stylesheet href="#newsStylesheet" type="text/xsl"?>
<!DOCTYPE doc [
<!ATTLIST xsl:stylesheet
id ID #REQUIRED>
]>
<projetEtatIntervenant>
<xsl:stylesheet version="1.0" id="newsStylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<style> div.selectable_table_body {background-color: #FFCC00;}</style>
</head>
<body>
<div class='selectable_table_body'>
<xsl:for-each select='projetEtatIntervenant/titre'>
<xsl:value-of select='c1titre'/>
<xsl:value-of select='C2TITRE'/>
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<titre>
<c1titre>Projet: toto - SYSTÈME D'INFORMATION </c1titre>
<C2TITRE>NB : Les dates d'affectation sont de niveau Projet </C2TITRE>
</titre>
</projetEtatIntervenant> |
ce code n'applique PAS le style demandé:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml-stylesheet href="#newsStylesheet" type="text/xsl"?>
<!DOCTYPE doc [
<!ATTLIST xsl:stylesheet
id ID #REQUIRED>
]>
<projetEtatIntervenant>
<xsl:stylesheet version="1.0" id="newsStylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<style> div.selectable_table_body {background-color: #FFCC00;}</style>
</head>
<body>
<table class='selectable_table_body'>
<xsl:for-each select='projetEtatIntervenant/titre'>
<tr>
<td><xsl:value-of select='c1titre'/></td>
<td><xsl:value-of select='C2TITRE'/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<titre>
<c1titre>Projet: pgasodi03 - SYSTÈME D'INFORMATION GROUPE</c1titre>
<C2TITRE>NB : Les dates d'affectation sont de niveau Projet </C2TITRE>
</titre>
<TITRE>
<C1TITRE>Liste des intervenants par sous projet</C1TITRE>
</TITRE>
<TITRE>
<C1TITRE>Etat produit le 18/02/2008</C1TITRE>
</TITRE>
<projet>
<libelle>SI GROUPE CRAWEB</libelle>
<matricule>190109</matricule>
<nom>GUIHENEUF NATHALIE</nom>
<profil>Profil Standard</profil>
<site>Clnt</site>
<datedebut>05/01/2007</datedebut>
<datefin>18/02/2008</datefin>
<pourcentage>100</pourcentage>
</projet>
<projet>
<libelle></libelle>
<matricule>190109</matricule>
<nom>GUIHENEUF NATHALIE</nom>
<profil>Profil Standard</profil>
<site>Rnes</site>
<datedebut>05/03/2008</datedebut>
<datefin>02/02/2009</datefin>
<pourcentage>2</pourcentage>
</projet>
</projetEtatIntervenant> |
J'ai beau chercher, je suis un peu perdue.
Partager