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

Merging two XSL:Fos

Subject: Merging two XSL:Fos
From: meenakshi n <mina_hurray@xxxxxxxxx>
Date: Thu, 7 Sep 2006 11:45:10 -0700 (PDT)
two xsl
Hi:

I have an issue. I will try to explain it as much as
possible here. 

I have 2 xslfo style sheets styling two different xml
files. I will call first style sheet card1.xsl with
root element <card1> and the second xslfo card2.xsl
with root element <card2>

Now,there is a condition <cond1> based on which data
from <card2> was merged into <card1> but <card1> now
is the root element for the entire xml. 
Now I need to style the merged portion from <card2>
which exists now under root element <card1>. This
needs to happen only if <cond1> exists on <card1>

Example:
Uses card1.xsl 
<card1>
<name>somename</name>
<age>someage</age>
</card1>
------------------------------
Uses card2.xsl

<card2>
<somename>xslt</somename>
<someage>fo<someage>

</card2>
---------------------------------

Merge:

<card1>
<name>somename</name>
<age>someage</age>
<cond1>yes</cond1>
<somename>xslt</somename>
<someage>fo<someage>
</card1>
-----------------------
So for the merged XML I need to reuse code form
card2.xsl. 

The possible soultion is to call-template in card1.xsl
and copy paste the whole code from card2.xsl into
card1.xsl. But this is very tedious and I would like
to know if there are better ways to solve this.

I have tried to explain the problem to the best.
Please do suggest if you have any ideas.

Thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.