Witam.
Muszę zrobić projekt na zaliczenie i mam problem z wyświetlaniem zdjęć w tabelce. Na Mozilli wszystko jest ok a na pozostałych przeglądarkach są problemy. Mam nadzieję że ktoś mi pomoże. Poniżej zamieszczam kod ze swojego projektu.
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="application/xml" href="katalog_rowerowy.xsl"?>
<catalog>
<bike>
<producer>Arkus</producer>
<picture>http://www.katalogrowerowy.pl/system/pictures/4d82263d43d75005960006e5/product_details_rgb.jpg</picture>
<model>Evolution 26</model>
<price>956 zł</price>
</bike>
<bike>
<producer>Arkus</producer>
<picture>http://www.katalogrowerowy.pl/system/pictures/4d8225cc43d75005960005a6/product_details_rgb.jpg</picture>
<model>Grafitti 505 2HT</model>
<price>958 zł</price>
</bike>
</catalog>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Katalor Rowerowy XC 2011</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Producer</th>
<th>Picture</th>
<th>Model</th>
<th>Price</th>
</tr>
<xsl:for-each select="catalog/bike">
<!--<xsl:sort select="model"/>--> <!--sortowanie-->
<tr>
<td><xsl:value-of select="producer"/></td>
<img><xsl:attribute name="src"><xsl:value-of select="picture"/></xsl:attribute></img>
<td><xsl:value-of select="model"/></td>
<td><xsl:value-of select="price"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Ten post edytował yorob 9.04.2011, 14:58:36