From: Jean-Charles Preaux (Jean-Charles.Preaux@alternative-advice.com)
Date: 02/05/2001 - 11:49
Bonjour ;
J'essaye d'utiliser une variable dans une feuille de style XSL, mais IE5.5
me renvoit une erreur du type:
"Le mot cle xsl:variable ne doit pas etre utilise ici."
voici le script :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl"
version="1.0">
<xsl:variable name="personne" select="/persons/person"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/persons">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="entete">
<head>
<xsl:apply-templates />
</head>
</xsl:template>
<xsl:template match="titre">
<title><xsl:value-of/></title>
</xsl:template>
<xsl:template match="persons">
<body>
<xsl:for-each select="$personne">
<span style="color:red;font-weight:bold;font-family:Arial;">
<xsl:value-of select="familyname"/>
 
</span>
<span style="font-weight:bold;font-family:Arial;">
<xsl:value-of select="givenname"/>
 
<xsl:value-of select="sex"/>
 
<xsl:value-of select="civilstatus"/>
 
<xsl:value-of select="birthdate"/>
 
<xsl:value-of select="profession"/>
 
<xsl:value-of select="streetadress"/>
 
<xsl:value-of select="locality"/>
 
<xsl:value-of select="postalcode"/>
 
<xsl:value-of select="country"/>
 
<xsl:value-of select="phone"/>
</span>
<br/>
</xsl:for-each>
<xsl:apply-templates/>
</body>
</xsl:template>
</xsl:stylesheet>
Quelqu'un pourrait il m'eclairer ??
Cordialement
Jean-Charles Preaux
mailto://jcp@alternative-advice.com
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (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 xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|