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

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
<xsl:template match="/">
    <h2>My CD Collection</h2>
    <table border="1">
      <tr bgcolor="#9acd32">
        <th>Primary Image</th>

      <xsl:for-each select="STEP-ProductInformation/Products">
        <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"/>

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gertone (Geert Bormans)Information ArchitectCommented:
add a text node

        <td><xsl:value-of select="./Product/AssetCrossReference[@AssetID]/@AssetID"/></td>
to become
        <td><xsl:value-of select="./Product/AssetCrossReference[@AssetID]/@AssetID"/>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
magentoAuthor Commented:
Hi ,

Thanks it worked, one more small help.

How to get the below o/p for this xml.

<Value AttributeID="Bullet Weight">50 gr.</Value>
<Value AttributeID="Item Code">SB</Value>
<Value AttributeID="Quantity per Box">40</Value>

Open in new window

Bullet Weight   50 gr
Item Code         SB
Quantity per Box 40
Gertone (Geert Bormans)Information ArchitectCommented:
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
magentoAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.