[xsl] Looping problem

Subject: [xsl] Looping problem
From: "Deepak Rao" <deepaksubs@xxxxxxxxxxx>
Date: Mon, 02 Dec 2002 17:30:02 -0500
Hi,

Sorry for the seemingly simple question, I tried searching on the FAQ but could not find it.

The following is the XML I want to transform. Can anyone help me out in writing a statement which access only the LOOP2 section and its children of the first LOOP1 section. I want to ingnore the rest of the LOOP1 sections and its children. I want to use a for-each (if possible)

<XML>
  <ABC>2323</ABC>
  <LOOP1>
     <XYZ>232</XYZ>
     <ERT>5465</ERT>
     <LOOP2>
        <DFG>345</DFG>
        <CVB>675</CVB>
     </LOOP2>
     <LOOP2>
        <DFG>123</DFG>
        <CVB>346</CVB>
     </LOOP2>
  </LOOP1>
  <LOOP1>
     <XYZ>123</XYZ>
     <ERT>345</ERT>
     <LOOP2>
        <DFG>123</DFG>
        <CVB>346</CVB>
     </LOOP2>
  </LOOP1>
  <LOOP1>
     <XYZ>123</XYZ>
     <ERT>345</ERT>
  </LOOP1>
</XML>

Thanks,
Deepak

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread