|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Merging two XSL:Fos
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
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! Subscribe in XML format
|







