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

Conditional display

Subject: Conditional display
From: "Asher, Praful" <praful.asher@xxxxxxx>
Date: Mon, 23 May 2005 11:03:24 -0400
conditional display in html
Hi.
I am new to xsl-fo and had a small doubt as to how my xsl should look if my
input xml is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<PlanPerformance>
	<FundPerformance>
		<FundId>1</FundId>
		<FundName>Fund1</FundName>
		<FundRate>
			<FundId>1</FundId>
			<FundName>FundOne</FundName>
			<SubFundRate>
				<FundId>2</FundId>
				<FundName>Fund2</FundName>
			</SubFundRate>
			<SubFundRate>
				<FundId>3</FundId>
				<FundName>Fund3</FundName>
			</SubFundRate>
		</FundRate>
	</FundPerformance>
	<FundPerformance>
		<FundId>2</FundId>
		<FundName>Fund2</FundName>
	</FundPerformance>
</PlanPerformance>

there can be only 1 FundRate tag within 1 FundPerformance.

I want to have a display like follows on my pdf.

Fund Id   Fund Name
-----------   ----------------
1	FundOne	(Name picked from FundRate as FundRate is present)
2	Fund2
3	Fund3
	2	        Fund2	(Name picked from FundPerformance as FundRate is not
present)

	Can someone please help me out in this case?

	Thanks,
	Praful.

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.