用于在父节点下使用新集替换子节点的XSLT映射

时间:2015-06-08 12:23:23

标签: xml xslt mapping

我想将以下输入转换为特定的输出结构。

场景是用父结构下的一组新节点替换重复的节点和值。你能帮忙吗

输入

    <License>

            <LicenseType>SLN</LicenseType>

            <LicenseNumber>706909</LicenseNumber>

            <LicenseStateCode>TX</LicenseStateCode>

            <EffectiveDate>2999-12-31</EffectiveDate>

            <EffectiveDate>2999-12-32</EffectiveDate>

            <ExpiryDate>2014-10-25</ExpiryDate>

            <ExpiryDate>2015-02-01</ExpiryDate>

            <StatusCode>A</StatusCode>

            <StatusCode>A</StatusCode>

    </License>

必需的输出

    <License>

            <LicenseType>SLN</LicenseType>

            <LicenseNumber>706909</LicenseNumber>

            <LicenseStateCode>TX</LicenseStateCode>

            <EffectiveDate>2999-12-31</EffectiveDate>

            <ExpiryDate>2014-10-25</ExpiryDate>

            <StatusCode>A</StatusCode>

    </License>

    <License>

            <LicenseType>SLN</LicenseType>

            <LicenseNumber>706909</LicenseNumber>

            <LicenseStateCode>TX</LicenseStateCode>

            <EffectiveDate>2999-12-32</EffectiveDate>

            <ExpiryDate>2014-10-25</ExpiryDate>

            <StatusCode>A</StatusCode>

    </License>

0 个答案:

没有答案