Subject: Re: [xsl] Help needed in recursively converting the flat xml to a heirarchical XML From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 29 Mar 2004 13:10:34 -0500 |
Thanks, Wendell
Here is the exact logic for nesting of the nodes...
1. As you can see my input xml consists of <concurrent-block/fork/transition> nodes which has attribute value (@to). I have to look for all the <activity-state> nodes with the same value in (@name), and if matched, move the <activity-state> to <concurrent-block>, else I have retain them at the same place.
2. Secondly, inturn the <activity-state> also has <transition> node which can have values related to another <activity-state> node and/or <join> node or <concurrent-block> node. If any matches are found then I have to move all of them to the <concurrent-block> node.
3. If a <concurrent-block> node is found in the second step, that has to have all the related <activity-state> nodes, <join> nodes etc., with in its block.
4. One or More <activity-state> nodes will refer to the same <join> node but I need only one occurance of the <join> irrespective of how many <activity-state> nodes are refering it. The basic rule is "Each <concurrent-block> should contain only one <join> node."
====================================================================== 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 -> |
---|---|---|
Re: [xsl] Help needed in recursivel, Sridhar Anupindi | Thread | Re: [xsl] Help needed in recursivel, Sridhar Anupindi |
RE: [xsl] Flatten a sequence to a s, Michael Kay | Date | Re: [xsl] Help needed in recursivel, Sridhar Anupindi |
Month |