magento
asked on
Adding .jpg to XML output
Hi ,
I am using below XSL for creating the o/p :
ParentID Name Primary Image
M69643 SB25A SBT_V320022U
I need to make the Primary Image display as SBT_V320022U.jpg
Thanks
I am using below XSL for creating the o/p :
ParentID Name Primary Image
M69643 SB25A SBT_V320022U
I need to make the Primary Image display as SBT_V320022U.jpg
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>ParentID</th>
<th>Name</th>
<th>Primary Image</th>
</tr>
<xsl:for-each select="STEP-ProductInformation/Products">
<tr>
<td><xsl:value-of select="./Product[@ParentID]/@ParentID" /></td>
<td><xsl:value-of select="./Product/Name" /></td>
<td><xsl:value-of select="./Product/AssetCrossReference[@AssetID]/@AssetID"/>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I was not around when you sent your follow up
I think it was answered in a different question.
Let me know if you need more help on this one
I think it was answered in a different question.
Let me know if you need more help on this one
ASKER
Hi ,
Kindly check this.
https://www.experts-exchange.com/questions/28652184/Filemaker-xsl-file.html
Thanks
Kindly check this.
https://www.experts-exchange.com/questions/28652184/Filemaker-xsl-file.html
Thanks
ASKER
Thanks it worked, one more small help.
How to get the below o/p for this xml.
Open in new window
o/p:
Bullet Weight 50 gr
Item Code SB
Quantity per Box 40