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

Summarising XML datasets

Subject: Summarising XML datasets
From: "Chris Hicks" <chrish2000@xxxxxxxxxxxxxx>
Date: Tue, 21 Dec 2004 15:15:13 +1100
xml datasets
Hi,

I have a problem formatting some XML I am receiving from a 3rd party
application that I cannot alter.

The application is querying a database that has a table called photo and a
table called photosubject, there is a one to many relationship between photo
and photosubject.

As a simple example, photo 1 is of a house and it has been deemed to cover
subjects X, Y and Z.  When I submit some arguments to the application I am
getting an XML document in this format:

<results>
  <photograph>
   <id>1</id>
   <name>House</name>
   <description>House 1</description>
   <subject>X</subject>
  </photograph>
  <photograph>
   <id>1</id>
   <name>House</name>
   <description>House 1</description>
   <subject>Y</subject>
  </photograph>
  <photograph>
   <id>1</id>
   <name>House</name>
   <description>House 1</description>
   <subject>Z</subject>
  </photograph>
</results>

What I want to do if possible is to render the information using xslt as:

HouseID  |  House  |  Description | Subjects
===========================================
1        |  House  |  House 1     | X, Y, Z

Any ideas?

Cheers,

Chris

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.