[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How to give Dynamic Hyperlinks...

Subject: How to give Dynamic Hyperlinks...
From: krishnas@xxxxxxxxxxxxx
Date: Mon, 9 Jun 2003 16:23:07 +0530
dynamic hyperlink
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.