This content has been marked as final. Show 3 replies
What you can use is the function - fn:exists() and check whether the optional element is there or not. Using the boolean result generated you can decide whether you want to insert it there or not.
thanks for reply, I will try and post results
well, I suppose this will do.