Redimensionner une image automatiquement
Bonjour,
Novice en XLS, XML enfi tout quoi.
J'ai un fichier à intégrer, mais les images sont immenses et je voudrais les mettre à une taille définie par moi
Voici mon code :
Code:
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
| <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.01"
encoding="iso-8859-1" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<xsl:for-each select="//product">
<table>
<th><xsl:value-of select="title"/></th>
<tr>
<td><xsl:apply-templates select="product_images"/></td>
<td>Description : <xsl:value-of select="desc"/>. <xsl:value-of select="other"/><br />
A partir de : <xsl:value-of select="price"/>,00 <br />
<a>
<xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute>
Réservez en ligne
</a></td>
</tr>
</table>
</xsl:for-each>
</body>
</html>
</xsl:template>
<xsl:template match="product_images">
<img>
<xsl:attribute name="src"><xsl:value-of select="./image"/></xsl:attribute>
</img>
</xsl:template >
</xsl:stylesheet> |
Je voudrai que mon image soit de 100 px x 100 px
Merci pour votre aide
Romuald