0
、EffectiveDateは、現在の日の翌日であるべきで、ExpirationDateとはEffectiveDate + 1年でなければなりませんあなたは私のXSLT変換のdatetime
入力XML助けてください:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Name>Test</Name>
</root>
を
出力XML:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<EffectiveDate>2017-05-4 13:05:658+0200</EffectiveDate>
<ExpirationDate>2018-05-4 13:05:658+0200</ExpirationDate>
</root>
サンプルXSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<root>
<EffectiveDate></EffectiveDate>
<ExpirationDate></ExpirationDate>
</root>
</xsl:template>
</xsl:stylesheet>
あなたは、現在の日付を取得する方法を知っていますか:http://stackoverflow.com/questions/26627949/how-to-find-the-current-date-in-xslt-1-0/26628225# 26628225 –