|
next
|
Subject: checking condition and writing values accordingly Author: Maurice Gonsalves Date: 05 Jun 2008 11:09 AM Originally Posted: 05 Jun 2008 11:06 AM
|
I have a request....
I have a document where I have several segments of E1KNVKM and within the segments I have
fields (NAME1, NAMEV & ABTNR) like below:
E1KNVKM
=>NAME1=X
=>NAMEV=Y
=>ABTNR=0000
E1KNVKM
=>NAME1=X
=>NAMEV=Y
=>ABTNR=5678
E1KNVKM
=>NAME1=X
=>NAMEV=Y
=>ABTNR=9999
E1KNVKM
=>NAME1=X
=>NAMEV=Y
=>ABTNR=5898
and so on
.
.
.
Now, I want to write the value "X" for NAME1 and "Y" for NAMEV
if and only if ABTNR=9999
Otherwise, insert a "comma" instead of "X" & "Y"
for the 4 checks the output would look like
,
,
,
,
X
Y
,
,
I start with the XSL codes below, but I'm not sure how I am going to write the conditions and necessary
steps...
<xsl:for-each select="E1KNVKM">
<NAME1>
<xsl:value-of select="NAME1"/>
</NAME1>
<NAMEV>
<xsl:value-of select="NAMEV"/>
</NAMEV>
</xsl:for-each>
|
|
|