473,387 Members | 1,495 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,387 software developers and data experts.

Display Distinct Values

Hi everyone I'm new to xslt.
I like the page to be displayed like this:

ID Number Name Amount
123 XYZ 100.00
200.00
456 ABC 500.00

Here's the sample XML file:
Expand|Select|Wrap|Line Numbers
  1. <page>
  2.    <about>About</about>
  3.    <title>Title</title>
  4.    <credits>
  5.        <credit>
  6.             <idnumber>123</idnumber>
  7.             <name>XYZ</name>
  8.             <amount>100.00</amount>
  9.        </credit>
  10.        <credit>
  11.             <idnumber>123</idnumber>
  12.             <name>XYZ</name>
  13.             <amount>200.00</amount>
  14.        </credit>
  15.        <credit>
  16.             <idnumber>456</idnumber>
  17.             <name>ABC</name>
  18.             <amount>500.00</amount>
  19.        </credit>
  20.    </credits>
  21. </page>
I would like to know the right codes for this. I've been trying lot of codes for this but it didn't all work.

Thanks in advance....
May 30 '07 #1
2 1210
dorinbogdan
839 Expert 512MB
Welcome to TheScripts TSDN...

Please post your XSL code, even it's not fully working.
We cannot provide full source code (it's against site rules), just suggestions and small code snippets.

Start by checking this example and next chapters there.

Thanks,
Dorin.
May 30 '07 #2
dorinbogdan
839 Expert 512MB
Also, I would suggest to write the expected result as a HTML file (with test values) and it will help to when composing the XSL code.
May 30 '07 #3

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

Similar topics

8
by: Richard | last post by:
This is probably easy but I can't work it out. I have this statement SELECT DISTINCT TOP 100 PERCENT dbo.CIF_PlaceReference.Name FROM dbo.CIF_Departures INNER JOIN dbo.CIF_PlaceReference...
3
by: Ravi | last post by:
My xml looks like <abc> 23 45 67 2 123 </abc> I wish to display these values comma separated 23; 45; 67; 2; 123
8
by: Rich | last post by:
My table looks like this: char(150) HTTP_REF, char(250) HTTP_USER, char(150) REMOTE_ADDR, char(150) REMOTE_HOST, char(150) URL, smalldatetime TIME_STAMP There are no indexes on this table...
5
by: Elvis V. | last post by:
Good morning, I have a table with three fields, Buildings, Floors and Rooms. This is what I would like to do; in my form when I select Building1 in my drop down box for Buildings, when I go to the...
5
by: Fred Zuckerman | last post by:
Can someone explain the difference between these 2 queries? "Select Distinct id, account, lastname, firstname from table1" and "Select DistinctRow id, account, lastname, firstname from table1" ...
7
by: Johnathan Doe | last post by:
I can google search to find the range of values that can be represented in a float by reading up on the IEEE std, but is that the same as how many distinct values that can go in a float type? ...
5
by: Daniel Wetzler | last post by:
Dear MSSQL experts, I use MSSQL 2000 and encountered a strange problem wqhile I tried to use a select into statement . If I perform the command command below I get only one dataset which has...
6
by: pooh80133 | last post by:
Hi! I am pasting my SQL code at the end of this message. I am trying to use SELECT DISTINCT in a query, but I am a beginner for using Access. Right now I have duplicate ID's (Indiv ID) in my...
1
newnewbie
by: newnewbie | last post by:
Desperately need help in creating a query to count unique values in a table. I am a Business analyst with limited knowledge of Access….My boss got me ODBC connection to the underlying tables for our...
2
by: Coolboy55 | last post by:
I'm creating a report with 3 source queries. Each source query returns distinct values of the same field name (SkillID). How do I display the distinct results of all 3 queries on the same report? ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.