Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am displaying nodes of an XML file row wise using XSLT. With each row I want to display Link Button . When the user clicks the Link Button, I want to display that particular row of XML whose Link Button is clicked by the user. That means I need to associate row ID or Row name or Tag name in xml with corresponding Link Button.
How can i do it using XSLT?
Posted
Comments
Sergey Alexandrovich Kryukov 4-Mar-13 14:51pm    
When you mention "when the user clicks the...", it should assume that this users uses some software which uses some file format. What is it? It could be the HTML content with XSLT, then it would work under the Web browser and the content will behave like HTML. But it could be something else. So, what is it?
—SA
mubashir9093 4-Mar-13 15:08pm    
I am displaying my xml using xslt as html in .aspx page in vb.net.Now the problem is that I need to extract particular node of xml displayed as html row.For that with each row I am displaying link button Now my question is that I want to associate row identifying value i.e ID attribute of that particular xml node which is diplayed in the row which is bieng clicked by the user.Any ways thanks for showing your intrest in my question.

1 solution

Yes I got the solution by myself.I did something like this in my xslt sheet:
XML
<xsl:variable name="fid" select="./ns1:AirItinerary/ns1:OriginDestinationOptions/ns1:OriginDestinationOption/ns1:FormData/ns1:FBC/@FlightNumber"> </xsl:variable>






          <a href="AirPrice.aspx?fid={$fid}">BookNow</a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900