我需要XSLT的帮助。示例XML如下所示。
<offer>
<Promotions>
<Promotion sequenceNumber="5132">
<Amount>0</Amount>
<PromotionType>Discount</PromotionType>
<PromotionLength>12</PromotionLength>
<DiscountAmount>64</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="8400">
<Amount>0</Amount>
<PromotionType>Discounted Price</PromotionType>
<PromotionLength>6</PromotionLength>
<DiscountAmount>0</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="5132">
<Amount>0</Amount>
<PromotionType>Discount</PromotionType>
<AssociatedCustomization>ATT-V5-HSIA-ULT-AI-VOIP-A</AssociatedCustomization>
<PromotionLength>12</PromotionLength>
<DiscountAmount>64</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="8400">
<Amount>0</Amount>
<PromotionType>Discount + Reward Card or Amazon Prime</PromotionType>
<PromotionLength>6</PromotionLength>
<DiscountAmount>0</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="8400">
<Amount>0</Amount>
<PromotionType>Discount + Reward Card or Amazon Prime</PromotionType>
<PromotionLength>6</PromotionLength>
<DiscountAmount>0</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="5132">
<Amount>0</Amount>
<PromotionType>Discount or Device</PromotionType>
<PromotionLength>12</PromotionLength>
<DiscountAmount>64</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="8400">
<Amount>0</Amount>
<PromotionType>Discounted Price</PromotionType>
<PromotionLength>6</PromotionLength>
<DiscountAmount>0</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="9000">
<Amount>0</Amount>
<PromotionType>Free Product</PromotionType>
<PromotionLength>3</PromotionLength>
<DiscountAmount>0</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
<Promotion sequenceNumber="9000">
<Amount>0</Amount>
<PromotionType>Free Product</PromotionType>
<PromotionLength>3</PromotionLength>
<DiscountAmount>0</DiscountAmount>
<RewardCardAmount>0</RewardCardAmount>
</Promotion>
</Promotions>
<StandardFees>
<Fee>140</Fee>
<FeeTerm>Monthly</FeeTerm>
<Description>No term commitment required.</Description>
<RackRate>199</RackRate>
<DiscountedFee>189</DiscountedFee>
<DiscountTerm>12</DiscountTerm>
<ContractTerm>24</ContractTerm>
</StandardFees>
</offer>
如果PromotionType包含单词&#34; Discount&#34;但不是&#34;打折&#34;然后我需要显示Offer / StandardFees / DiscountedFee else Offer / StandardFees / Fee。任何帮助都非常感谢。我需要在XSLT中执行此操作。