[xsl] How to give Dynamic Hyperlinks...

Subject: [xsl] How to give Dynamic Hyperlinks...
From: krishnas@xxxxxxxxxxxxx
Date: Mon, 9 Jun 2003 16:23:07 +0530
hai..

i want to give dynamic  hyperlinks to a column of data in table,
so that based on the data in the column it must link to the respective  file
in respective folder.

my xmlfile

<myroot>

         <vemf_result_details>
                          <requirement_section>1231</requirement_section>
	              <test_name>MyTest/Run1</test_name>
	        	 <test_result>pass</test_result>
               	 <tester_name>Tom</tester_name>
		 <comments>sucessfull completion  </comments>
               </vemf_result_details>
	<vemf_result_details>
                         <requirement_section>1231</requirement_section>

                	 <test_name>PerTest/Run2</test_name>
	        	 <test_result>pass</test_result>
               	 <tester_name>Tom</tester_name>
		
                         <comments>sucessfull completion  </comments>
               </vemf_result_details>
	<vemf_result_details>
                          <requirement_section>1233</requirement_section>

                	  <test_name>Test/Run2</test_name>
	        	 <test_result>pass</test_result>
               	 <tester_name>Tom</tester_name>
		 <comments>sucessfull completion  </comments>
            </vemf_result_details>
	      	
	<vemf_result_details>
                   ----------
		------
                        ----------------
 	</vemf_result_details>
	
              <vemf_result_details>
		----------
		------
                        ----------------
	 </vemf_result_details>

		----------
		------
                        ----------------


</myroot>


  the data in  "<test_name> MyTest/Run1</test_name>"
here    MyTest  represents folder name  and Run1 represents a Run1.XML file
inside that folder. so i want to have a hyperlink to the file. 

how to give a dynamic  hyperlink in the xsl file. 

 <table border="2" width="100%" bordercolorlight="#FFCCFF"
bordercolordark="#81FCF9"
                style="font-size:9pt;font-family:Verdana;color:blue;">      
         
         	 <tr>         
         		<th align="center">Requirement Session</th>
         		<th align="center">Test Name</th>
         		<th align="center">Test Result</th>
         		<th align="center"> Tester Name</th>
         		<th align="center">Comments</th>
              </tr>
 <!-- looping through each individual test Result values  each cycle is  one
record generation  in report --> 
                    <xsl:for-each
select="verification_matrix/vemf_result_details">
        	<tr>                	
                               <td  align="center"><xsl:value-of
select="requirement_section"/> </td>
                              <td  align="center"> <xsl:variable
name="home">
         		      <xsl:value-of
select="concat(test_name,'.xml')"/>
                               </xsl:variable>
                                                 <A
HREF="home"><xsl:value-of select="test_name"/></A>
                                     </td>
	 		<td align="center"><xsl:value-of
select="test_result"/></td>
                     	             <td align="center"> <xsl:value-of
select="tester_name"/></td>                    	         
             		<td align="center"> <xsl:value-of
select="comments"/></td>
                </tr>
       </xsl:for-each>  
   </table>


I may be missing one of the fundamentals here 

please help...
Thanks in advance
KrishnaKishore
   

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread