Supprimer un message
vatzyaya
J'ai trouvé la solution!
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="XML" version="1.0" encoding="iso-8859-1"/>
- <xsl:template match="/">
- <html>
- <body>
- <xsl:for-each select="NewsML/NewsItem/NewsComponent/NewsComponent/NewsLines">
- <xsl:if test="position() <= 10">
- <a href="http://www.polyfoot.eu/index?option=com_content&task=view&id=310&Itemid=126&art- icle={../NewsItemRef/@NewsItem}" xmlns="http://www.w3.org/1999/xhtml">
- <span class="guide">
- <xsl:value-of select="HeadLine"/></span>
- </a><br/>
- <IMG>
- <!-- -->
- <xsl:attribute name="BORDER">
- <xsl:text>0</xsl:text>
- </xsl:attribute>
- <!-- -->
- <xsl:attribute name="HEIGHT">
- <xsl:text>12</xsl:text>
- </xsl:attribute>
- <!-- -->
- <xsl:attribute name="SRC">peau/pointsroses.gif</xsl:attribute>
- <!-- -->
- <xsl:attribute name="WIDTH">
- <xsl:text>166</xsl:text>
- </xsl:attribute>
- <!-- -->
- </IMG><br/>
- </xsl:if>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template></xsl:stylesheet>