473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

retrieve information for particular iteration and selecting it through radio button

1
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fp="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fp">
<xsl:template match="/">





<xsl:choose>
<xsl:when test="local-name(fp:AC_FlightPassesRS/fp:Success)='Success'">



<table border="1">
<tr>
<td colspan="3">
<b>Time Stamp :</b><xsl:value-of select="fp:AC_FlightPassesRS/@TimeStamp"/>
</td>
</tr>
<tr>
<td colspan="3">
<b>Start Index :</b><xsl:value-of select="fp:AC_FlightPassesRS/fp:FlightPasses/@StartIndex"/>
</td>
</tr>
<tr>
<td colspan="3">
<b>Count :</b><xsl:value-of select="fp:AC_FlightPassesRS/fp:FlightPasses/@Count"/>
</td>
</tr>
<xsl:for-each select="fp:AC_FlightPassesRS/fp:FlightPasses/fp:FlightPass">
<tr>
<td>
<b><xsl:value-of select="position()"/></b>
</td>




<td>
<input type="radio" name="fp_group" >
<xsl:attribute name="value">
radio_<xsl:value-of select="position()"/>
</xsl:attribute>
</input>
</td>
<td>

<b>InitialNumberOfCredits : </b> <xsl:value-of select="fp:FlightPassID/@InitialNumberOfCredits"/><br></br>
<b>Status : </b> <xsl:value-of select="fp:FlightPassID/@Status"/><br></br>
<b>CreditBalance : </b> <xsl:value-of select="fp:FlightPassID/@CreditBalance"/><br></br>
<b>FlightPassName : </b> <xsl:value-of select="fp:FlightPassName"/> <br></br>
<b>Product ID : </b> <xsl:value-of select="fp:ProductID"/> <br></br>
<b>Product Name : </b> <xsl:value-of select="fp:ProductName"/><br></br>
<b>Credit Type : </b> <xsl:value-of select="fp:CreditType"/><br></br>
<b>Owner Type : </b> <xsl:value-of select="fp:Owner/@Type"/><br></br>
<b>Owner Title : </b> <xsl:value-of select="fp:Owner/fp:Title"/><br></br>
<b>Owner Last Name : </b> <xsl:value-of select="fp:Owner/fp:LastName"/><br></br>
<b>Owner First Name : </b> <xsl:value-of select="fp:Owner/fp:FirstName"/><br></br>


</td>
<INPUT type="hidden" name="INC">
<xsl:attribute name="value">
<xsl:value-of select="fp:FlightPassID/@InitialNumberOfCredits"/>
</xsl:attribute>
</INPUT>
</tr>

</xsl:for-each>

</table>
<INPUT type="submit" name="Retrieve_FlightPasses" value="Get FlightPasses" />
</xsl:when>
<xsl:otherwise>
<xsl:if test="local-name(fp:AC_FlightPassesRS/fp:Errors/fp:Error)='Error'">
<b>Error Occured : </b><xsl:value-of select="fp:AC_FlightPassesRS/fp:Errors/fp:Error"/>

</xsl:if>

</xsl:otherwise>






</xsl:choose>

</xsl:template>
</xsl:stylesheet>



In the above xsl radio button is created for each iteration of for each select from an xml file.now i want to select a particular radio button and information corresponding to it and then submit it to next page
Nov 7 '06 #1
0 1742

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Criswell | last post by:
I have created a radio button list programmatically. C# SqlConnection conn = new SqlConnection("data source=localhost; integrated security=true; initial catalog=pubs"); SqlCommand cmdAuthors =...
2
by: Rob | last post by:
Hi all, I've got multiple sets of radio button that are dynamically created in code and populated by a database query. The query returns about 20 recordsets with 3 radio buttons per recordset and...
2
by: Mike Kelly | last post by:
Hi. I have a data table where rows are grouped according to a certain criteria and I want to be able to display all the rows that belong to the same group together on the screen. In addition, I...
3
by: newjazzharmony | last post by:
Hello group, I want to automatically select a specific checkbox when a user clicks (selects) a specific item in a radiobutton group. Both controls are in the same form. Let's say for...
16
by: Vikas Kumar | last post by:
i am selectin some data from database and through reader showing it in datalist as above now for radio buttons i have single column which returns 1,2,3 and according to that i want one of above...
4
by: LetMeDoIt | last post by:
Greetings, I'm using ASP to retrieve from MSSQL and I then populate a table. After several months of successfull retrieves, this same code now bombs out. It turns out that if I clear out from...
5
by: Matt B | last post by:
I know this is a bit of nonstandard behavior, but I would like the Enter key to move focus through a group of radiobuttons without selecting them. The user would then have to use Space or actually...
4
by: Evanescent | last post by:
Hi Guys, I am trying to create a form which allows the users to retrieve records based on the values entered or chosen in the various combo boxes and textboxes, such as the customer's name, invoice...
2
by: puT3 | last post by:
I have Customer table where there is a field called Company Type which store corporate or private. I want to retrieve the value in the table so it is diplayed on classic asp file in radio button. Im...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.