on 10-09-2007 3:21 PM
HI,
can you explain me "how to use the xsl if function" ?
My source is an ORDRSP Idoc and i want to use the following.
IF E1EDP20 is existing then ....
and
IF E1EDP20/WMENG = 0 then ...
anyway... is there an option to test the xslt mapping with XML spy or another tool ?
any ideas ?
Hi Gordon
<xsl:if test="string-length(//E1EDP20)!=0 and //E1EDP20/WMENG=0"><then>show</then></xsl:if>
Open XML at Spy and choose Assign XSL from menu. Press F10 for execute.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon,
I usually use this for question like:
<xsl:if test="count(./PAYMENT) > 0 ">
<...>
</xsl:if>
Here for example only make <..> where the number of nodes of payment is more than 0.
Help here:
http://www.w3schools.com/xsl/xsl_if.asp
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.