Subject: Re: [xsl] Re:Help needed in recursively converting the flat xml to a heirarchical XML... From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 30 Mar 2004 15:00:55 -0500 |
I think I made a significant progress with your explanation. Thanks, But still I am stuck with some problems.
1. As you said, I tried replacing
<xsl:copy-of select="key('jname', $joinname)"/> with
<xsl:copy-of select="key('jname', $joinname)[1]"/> but the problem here since I loop thru each activity-state whether I use your solution or not it is copying multiple joins (coz each activity-state can have multiple transitions and each activity-state may refer to the same join).
2. As I said there can be nested <concurrent-block> structures one inside the other. Though I am able to populate this structure with my code, the problem here I am facing is the internal <concurrent-block> is also being populated at the external level. The problem is I am using a for each select = "fork" at the template level which will loop through all the <concurrrent-block> structures in the original xml. But I am not able to figure out the solution.
3. The example I pasted here is fairly a simple one, which does not have multiple <activity-state> nodes inside a <concurrent-block>
In this example the relation is
<concurrent-block> ---> <activitiy-state>-----> <join>. Hence my code is working fine except the above two problems.
But I can have a possible scenario like
<concurrent-block>----> <activity-state>----><activity-state>----><decision>----><join>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re:Help needed in recursively, Sridhar Anupindi | Thread | [xsl] xslt node-set variable transv, Kyle Partridge |
[xsl] xslt node-set variable transv, Kyle Partridge | Date | RE: [xsl] Advice/feedback on styles, M. David Peterson |
Month |