Praveen Jakkaraju
Praveen Jakkaraju

Reputation: 1631

how to link/add xml url in the xsl file

i have a xsl file as below:

-------Begin------
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    <xsl:template match="/">
    <html>
    <body>
    <h1>Content Cert the following App Images</h1>

    <h3>APPX Images</h3>
    <table border="1">
      <tr bgcolor="rgb(0,176,240)">
        <th>Images</th>
      </tr>
      <xsl:for-each select="Images/Image">
         <tr>
           <td>
             <img>
               <xsl:attribute name="src">
                 <xsl:value-of select="ImageURL"/>
               </xsl:attribute>
             </img>
           </td>
         </tr>
       </xsl:for-each>
     </table>


    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
--------end--------

i have a xml file in my local path. using this xsl file i am creating an mht file which will display the Image as i eneterd in the xsl file

Now i am trying to link the xml file which is already present in my loacl path in the xsl file. i have tried using the <a href = "c:\data\test.xml"></a>

i donn't see the xml link is getting embeded in the mht file. could you please help in this how to link /add the xml url in the xsl file and where should i add that line of code? thanks in advance

Upvotes: 0

Views: 1926

Answers (1)

Kirill Polishchuk
Kirill Polishchuk

Reputation: 56202

Try to add to body element this node:

<a href="c:\data\test.xml">Link to XML</a>

Upvotes: 1

Related Questions