Using conditional logic when doing a concat
Why can't I use conditional logic when doing a concat? The mapper
tells me that the XSL is invalid.
"concat(TrailerInfo:name,WHEN
CONDITION{../TrailerInfo:containerType='BAG'}
VALUE=['-SSB'] OTHERWISE VALUE=['-PLT'] )"
0
-
When TrailerInfo:containerType = "BAG", you'd like to concatenate TrailerInfo:name with "-SSB". Otherwise concatenate TrailerInfo:name with "-PLT".
Is this correct?
0 -
Exactly. Thank you!!!
0 -
You'll need to create a local variable that contains your "WHEN CONDITION", then use that within the concat function. Let us know if that does the trick.
0 -
Thank you! I figured out another way around it.
0
Please sign in to leave a comment.
Comments
4 comments