title: xslt transformation for given xml
body: <p>This is my xml file for which I am to write an xsl file. Purpose for this xsl is to use for xml to html translation using java xml transform.</p>
  
  <p><img src="https://i.stack.imgur.com/aXCO1.jpg" alt="xml file"></p>
  
  <p>I am trying to implement this logic in my xsl file, but unable to get so.</p>
  
  <pre><code>for each loop Id = PO1
      if segment Id = PO1
          if element Id = PO103
              print its value (i.e. CS)
      if loop Id = PID
          if segment Id = PID
              if element Id = PID05
                  print its value (i.e. BANANAS, ...)
  </code></pre>
  
  <p>Any help would be appreciated.</p>