【发布时间】:2015-05-08 09:59:33
【问题描述】:
我有一个场景,我们需要在现有日期中增加 1 天。就像在 <subscriptionDate>2015-05-06</subscriptionDate> 中一样,我想增加 1 天并将其值映射到 <terminationDate>2015-05-07</terminationDate>。如何使用 XSLT 实现这一点。因此,还应处理所有日期限制。就像如果天是 31 则按月递增。
<Subscription code="12345678R1">
<userAccount>40000005b</userAccount>
<offerTemplate>Test</offerTemplate>
<subscriptionDate>2015-05-06</subscriptionDate>
<terminationDate></terminationDate>
</Subscription>
【问题讨论】:
-
请选择 XSLT 1.0 或 XSLT 2.0,不要同时选择两者。在这种情况下会有很大的不同。