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

RE: Table Building Problem

Subject: RE: Table Building Problem
From: "Jon Wynacht" <jwynacht@xxxxxxxxx>
Date: Wed, 25 Apr 2001 07:36:53 -0700
table building
Actually, what I'm looking for is:

<table>
	<tr>
		<td>Project</td>
		<td>Version</td>
	<tr>
	<tr>
		<td>each available project id, for each bug</td>
		<td>each available version id, for each bug</td>
	</tr>
</table>

This would be extrapolated out to have multiple column headings from the
first xml bit being populated by the second xml bit.

Jon

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Meltem
Kogelbauer
Sent: Wednesday, April 25, 2001 2:53 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Table Building Problem


Is that what you want to have as output?

<table border="1">
	<tr>
		<td>Project</td>
		<td>Version</td>
	</tr>
	<tr>
		<td>First Module</td>
		<td>First Version</td>
	</tr>
</table>

Or more than this?

Meltem


-----Original Message-----
From: Jon Wynacht [mailto:jwynacht@xxxxxxxxx]
Sent: 24 April 2001 6:11 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Table Building Problem


Hi,

I've run into some difficulty with creating a table based on two separate
trees of xml in the same document. The first one looks like this:

<ReportFields>
	<database>
		<table0>
			<record0>
				<FIELDNAME><![CDATA[Project]]></FIELDNAME>
			</record0>
			<record0>
				<FIELDNAME><![CDATA[Version]]></FIELDNAME>
			</record0>
		</table0>
	</database>
</ReportFields>

Note: There are more than just two record0/FIELDNAME values...there could be
as many as 20.

The next bit of xml looks like this:

	<Bug>
		<ProjectId>2042</ProjectId>
		<Id>11802</Id>
		<BugDesc>null</BugDesc>
		<Module>
			<Name>First Module</Name>
		</Module>
		<Version>
			<Name>First Version</Name>
		</Version>
		<Responsible>
			<FirstName>Jon</FirstName>
			<LastName>Wynacht</LastName>
		</Responsible>
		<Originator>
			<FirstName>Joseph</FirstName>
			<LastName>Stiehm</LastName>
		</Originator>
		<BugItem>
			<Name>Bug Count</Name>
			<ItemValue>10</ItemValue>
			<AvailableField>
				<ValueControl>FREE_FORM</ValueControl>
			</AvailableField>
		</BugItem>
		<BugItem>
			<Name>UglyBug?</Name>
			<ItemValue>Y</ItemValue>
			<AvailableField>
				<ValueControl>FREE_FORM</ValueControl>
			</AvailableField>
		</BugItem>
		<BugItem>
			<Name>Bug Color</Name>
			<ItemValue>1592</ItemValue>
			<AvailableField>
				<ValueControl>VALUE_LIST</ValueControl>
			</AvailableField>
			<ValueListElement>
				<ElementValue>Red</ElementValue>
			</ValueListElement>
		</BugItem>
		<BugItem>
			<Name>State</Name>
			<ItemValue>6544</ItemValue>
			<AvailableField>
				<ValueControl>VALUE_LIST</ValueControl>
			</AvailableField>
			<ValueListElement>
				<ElementValue>Dormant</ElementValue>
			</ValueListElement>
		</BugItem>
	</Bug>

What I need to do is create the column headings from the first bit of xml
and populate from the second bit of xml. Doing the first part is no problem,
populating the table, however, is a different animal altogether.

I've looked over xsl:key and thought that might be helpful, but I won't know
the values to insert into the key until the xml is generated.

Any ideas here? Help would definitely be appreciated and save me from
banging my head against the wall any further.

Thanks,

Jon

------------------------------
Jon Wynacht
Web Architect
ISBU Hardware Engineering
Cisco Systems
408-527-5261
jwynacht@xxxxxxxxx

"When the sureties of the present are defined, the mind races with the
possibilities of the future"


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.