on 2024 Jan 08 6:40 PM
Request clarification before answering.
Hi Arvik,
This solution presupposes the renaming that I have mentioned in my comment.
<xsl:choose>
<xsl:when test=“exists($nodes_in/BELNR_012)”><xsl:value-of select="$nodes_in/BELNR_012“/></xsl:when>
<xsl:otherwise><xsl:value-of select="$nodes_in/BELNR_002”/></xsl:otherwise>
</xsl:choose>
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this one -
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:choose>
<xsl:when test="//E1EDK01[QUALF=012]/BELNR">
<S_REF>
<D_128><xsl:value-of select="'Qulifier'"/></D_128>
<D_127><xsl:value-of select="//E1EDK01[QUALF=012]/BELNR"/></D_127>
</S_REF>
</xsl:when>
<xsl:otherwise>
<S_REF>
<D_128><xsl:value-of select="'Qulifier'"/></D_128>
<D_127><xsl:value-of select="//E1EDK01[QUALF=002]/BELNR"/></D_127>
</S_REF>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Regards,
Yayati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.