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

display problem with xslt

Hey,

I have a xslt file (see below) and now I would like to generate an output
like:
(I've deleted the real info)
* a
By aaa
* b
By bbb
* c
By aaa, ccc
How do I do this?
<?xml version="1.0" encoding="UTF-8"?>
<publications>
<select>
<publication>
<title_1>a</title_1>
<publication_id></publication_id>
<person_id>aaa</person_id>
<name></name>
<email></email>
</publication>
<publication>
<title_1>b</title_1>
<publication_id></publication_id>
<person_id>bbb</person_id>
<name></name>
<email></email>
</publication>
<publication>
<title_1>c</title_1>
<publication_id></publication_id>
<person_id>aaa</person_id>
<name></name>
<email></email>
<publication_id></publication_id>
<person_id>ccc</person_id>
<name></name>
<email></email>
</publication>
</select>
</publication>
Jul 20 '05 #1
1 1004
Read about xsl:key and the key() function.

Then use this knowledge.
Cheers,
Dimitre Novatchev

"Piet L." <Pi*******@hotmail.com> wrote in message
news:c4**************************@posting.google.c om...
Hey,

I have a xslt file (see below) and now I would like to generate an output
like:
(I've deleted the real info)
* a
By aaa
* b
By bbb
* c
By aaa, ccc
How do I do this?
<?xml version="1.0" encoding="UTF-8"?>
<publications>
<select>
<publication>
<title_1>a</title_1>
<publication_id></publication_id>
<person_id>aaa</person_id>
<name></name>
<email></email>
</publication>
<publication>
<title_1>b</title_1>
<publication_id></publication_id>
<person_id>bbb</person_id>
<name></name>
<email></email>
</publication>
<publication>
<title_1>c</title_1>
<publication_id></publication_id>
<person_id>aaa</person_id>
<name></name>
<email></email>
<publication_id></publication_id>
<person_id>ccc</person_id>
<name></name>
<email></email>
</publication>
</select>
</publication>

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: blank101 | last post by:
I am an xml beginner trying to figure out if xml will be a good tool for a problem. I want to use the functionality associated with viewing raw xml files (namely the expanding +'s and -'s), but...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
3
by: Michelle | last post by:
Hi, I want to display some pretty basic xml data in a .NET user control that I would like to build for my site. I am getting the XML from a URL that has been provided to me (i.e....
11
by: Webbert | last post by:
I am trying to display XML in a WebBrowser Control. I receive a data feed of XML and am trying to inject it into the control. I have not been successful in doing so. The only solution I have...
0
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Via an ASPX (and code behind) in .net 2.0 I want to be able to "page" though and display the contents of an xml file. So if there are 100 elements, I can display "page 1 of 4" and list 25 elements...
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
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.