Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Re: Getting unwanted values between the XML tags in XSLT mapping

$
0
0

Hi David,

 

Here is the code fragment where these 2 tags are mapped, FYI, the source is an IDOC message. The unwanted "11" is coming After the <Tag></Tag> and <DataID></DataID>. FYI, Fof the element <Tag></Tag> its a default value. But for <DataID> </DataID>  I have the mapping logic.

 

<Order>

            <OrderHeader>

              <Tag>009</Tag>

              <xsl:for-each select="E1EDKA1">

                <xsl:choose>

                  <xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U960'">

   <DataID>

                    <xsl:value-of select="'1'" />

   </DataID>

                  </xsl:when>

                  <xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U300'">

   <DataID>

                    <xsl:value-of select="'3'" />

       </DataID>

                  </xsl:when>

   <xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U930'">

   <DataID>

                    <xsl:value-of select="'1'" />

   </DataID>

                  </xsl:when>

   <xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U400'">

   <DataID>

                    <xsl:value-of select="'3'" />

   </DataID>

                  </xsl:when>

                  <xsl:otherwise>

                    <xsl:value-of select="'1'" />

                  </xsl:otherwise>

                </xsl:choose>

               </xsl:for-each>


Viewing all articles
Browse latest Browse all 9069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>