Article View: fr.comp.text.xml
Article #8486Pas compris l'erreur
From: Pascal CESCON
Date: Thu, 11 Oct 2001 07:57
Date: Thu, 11 Oct 2001 07:57
92 lines
2629 bytes
2629 bytes
J'ai le XSLT suivant ou je cr�e un template sans pour autant l'utiliser et j'ai une erreur "e mot cl� xsl:param ne doit pas �tre utilis� ici. ". Voici le code : <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <!-- here is the template that does the replacement --> <xsl:template name="SubstringReplace"> <xsl:param name="stringIn"/> <xsl:param name="substringIn"/> <xsl:param name="substringOut"/> <xsl:choose> <xsl:when test="contains($stringIn,$substringIn)"> <xsl:value-of select="concat(substring-before($stringIn,$substringIn),$substringOut)"/> <xsl:call-template name="SubstringReplace"> <xsl:with-param name="stringIn" select="substring-after($stringIn,$substringIn)"/> <xsl:with-param name="substringIn" select="$substringIn"/> <xsl:with-param name="substringOut" select="$substringOut"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$stringIn"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="/"> <html> <body> <table border="2" bgcolor="yellow"> <tr> <th>Title</th> <th>Artist</th> </tr> <xsl:for-each select="Info/Data"> <tr> <td><xsl:value-of select="ID2"/></td> <td><xsl:value-of select="ID29"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> Quelqu'un peut me dire pourquoi ? merci ------------------------------------------------------------ Pascal CESCON - Cityneo pascal.cescon@cityneo.com www.cityneo.com ------------------------------------------------------------
Technical Details
Message-ID:
<9q3j9b$7a6$1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!opentransit.net!wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,4ceb702306d924de,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-10-11 00:55:24 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!opentransit.net!wanadoo.fr!not-for-mail From: "Pascal CESCON" <pascal.cescon@cityneo.com> Newsgroups: fr.comp.text.xml Subject: Pas compris l'erreur Date: Thu, 11 Oct 2001 09:57:02 +0200 Organization: Wanadoo, l'internet avec France Telecom Lines: 95 Message-ID: <9q3j9b$7a6$1@wanadoo.fr> NNTP-Posting-Host: amarseille-101-1-1-5.abo.wanadoo.fr X-Trace: wanadoo.fr 1002786923 7494 193.252.177.5 (11 Oct 2001 07:55:23 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 11 Oct 2001 07:55:23 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700