Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Conditional mapping - checking for Null value

user542731Sep 10 2007 — edited May 22 2008
Does anyone know how to check for a null value in an xsl:if test="" construct. I need to map a value into a concatenation function, but only if a value is passed. So far I have the following but it doesn't work:

<xsl:if test="/client:icmsFetchSearchCriteria21/client:searchCriteriaId">
<xsdLocal1:CustomObject1Id>
<xsl:value-of select="concat("='",/client:icmsFetchSearchCriteria21/client:searchCriteriaId,"'")"/>
</xsdLocal1:CustomObject1Id>
</xsl:if>

What happens is that when the searchCriteriaId is not passed a value, the mapping ends up as =''.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2008
Added on Sep 10 2007
2 comments
1,836 views