<STOREITEMS> <PRODUCT ITEM="1"> <NAME>F-0143</NAME> <PRICE>135.00</PRICE> <MODEL>0143</MODEL> <CATEGORY>Μπότες</CATEGORY> <IMAGE_URL>http://www.mySite.gr/components/com_eshop/product_images/img_0143.jpg</IMAGE_URL> <URL>http://www.mySite.gr/eshop/mpotes/1.html</URL> </PRODUCT>
<xsl:for-each select="STOREITEMS/PRODUCT"> <xsl:sort select="CATEGORY"/> <tr> <td><xsl:value-of select="@ITEM"/></td> <td><xsl:value-of select="NAME"/></td> <td><xsl:value-of select="PRICE"/></td> <td><xsl:value-of select="MODEL"/></td> <td><xsl:value-of select="CATEGORY"/></td> <td><xsl:value-of select="IMAGE_URL"/></td> <td><xsl:value-of select="URL"/></td> </tr> </xsl:for-each>
<xsl:value-of select="IMAGE_URL"/>
$xml = simplexml_load_file('path_to_xml_file', 'SimpleXMLElement');foreach ($xml->PRODUCT as $product) { $img = (string)$product->IMAGE_URL; echo '<img src="'.$img.'" alt="image" /><br />';}