on 07-30-2007 12:49 PM
Hi All,
I have a requirement in xslt mapping (java)where i need to find the existence of a node , if it is existed the node should be created with the value on target side , if it is not existed the empty node should be created in the target.
Thanks in Advance
Prasad
Hi
I think it is Possible with using Exists (node Function) and if then else (Boolean Function ) in sender Side and give Values.
I think it is possible.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can use the "<b>choose</b>" test:
<u>Here an example:</u>
<xsl:choose>
<xsl:when test="InvoiceType/InvoiceTypeCoded = 'DebitMemo'">
<InvoiceType stdValue="380"/>
</xsl:when>
<xsl:when test="InvoiceType/InvoiceTypeCoded = 'CreditMemo'">
<InvoiceType stdValue="381"/>
</xsl:when>
</xsl:choose>
If you have only one test without an else you can use the "<b>if</b>" test:
<u>Here an example:</u>
<xsl:if test="InvoiceIssueDate != 'N/A'">
<InvoiceDate/>
</xsl:if>
You can find more detailed on this site:
http://www.zvon.org/xxl/XSLTreference/Output/index.html
Regards,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.