View Single Post
  #2 (permalink)  
Old October 3rd, 2007, 17:36
satya_m satya_m is offline
Junior Member
 
Join Date: May 2007
Location: Singapore
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
satya_m is on a distinguished road
Re: Tender Stylesheets - Multiple xsl:when conditions

Hi,

I don't think multiple <xsl:when>s with one <xsltherwise> will work. I haven't used or seen multiple when conditions with single otherwise in GC3.

Have you tried something like this?

if shipment refnum value = ABC or shipment refnum value = DEF or shipment refnum value = GHI

then use template A

otherwise
use template B


I have implemented my conditions this way manytimes and it works fine for me.

Also, please check if your xpaths (eg. /notify/Blob/xml/TenderOffer/Shipment/ShipUnit/ShipUnitContent/ItemQuantity/ItemTag2) are fetching the correct values.

Let me know if you need more info.


Regards,
Satya
Reply With Quote