xsl-list
[Top] [All Lists]

[xsl] Re: Transform plane structure with composite tags into nested structure with decomposed tags

2007-10-29 17:40:24
Hello ALL,

I need to transform XML from form_1 into form_2.
Hopefully, this is well known FAQ.

form_1.
Plane/flat (not nested) structure with composite/compound/structured tags
Like <struct1.param12.param123> below.

<soap:Envelope
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ ">
  <soap:Header>
  </soap:Header>
  <soap:Body>
     <request>
       <struct1.param11>...</struct1.param11>
       <struct2.param21>...</struct2.param21>
       <struct1.param12.param123>...</struct1.param12.param123>
     </request>
   </soap:Body>
 </soap:Envelope>


form_2.
Nested/hierarchical structure with simple/decomposed tags
Like <struct1>...<param11>...<param12> below.

<soap:Envelope
  xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/";>
   <soap:Header>
   </soap:Header>
   <soap:Body>
     <request>
       <struct1>
         <param11>...</param11>
         <param12>
           <param123>...</param123>
         </param12>
       </struct1>
       <struct2>
         <param21>...</param21>
       </struct2>
     </request>
   </soap:Body>

--
Sincerely,
Sam Mesh

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>