View Single Post
  #3 (permalink)  
Old June 4th, 2008, 12:08 PM
xsltier xsltier is offline
Registered User
 
Join Date: Jun 2008
Location: Perrysburg, OH, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi MHKAY,

Thns for ur quick response.

Please dont misunderstand me. I am learning XSLT now. Before posting the question, I have searched the forums and found all the discussions are pointing to same link which I cant understand clearly.My intention is to put the note as to get the exact coding where I am looking for my job.

My problem is like, I have to generate nodes in destination as
/* Code */
           <L>
               <H>
                  <D>ruby</D>
                  <A>Diamond</A>
                  <B>Gold</B>
                  <S>
                     <C>LMP003</C>
                     <E>20080522</E>
                  </S>
               </H>
            </L>

/* Code */

If i see the corresponding node C value "LMP003" in source field BSTNR again in tree navigation, then it should not display the complete L node.What should I code? MY CODING IS AS FOLLOWS.

<xsl:template match="E1EDL41">
<L>
 <H>
  <D><xsl:value-of select="ancestor::E1EDL41/E1EDT13/NTANF"/></D>
  <A><xsl:value-of select="ancestor::E1EDL41/E1EDT13/BLNR"/></A>
  <B><xsl:value-of select="ancestor::E1EDL41/E1EDT13/POSR"/></B>
  <S>
    <C><xsl:value-of select="BSTNR"/></C>
    <E><xsl:value-of select="ancestor::E1EDL20/EDATE"/></E>
  </S>
 </H>
</L>
</xsl:template>

Thanks
Chinnu

Reply With Quote