在XSLT代码中需要帮助才能更改名称空间

时间:2017-09-29 07:05:15

标签: xslt

请求您帮助我使用XSLT Mapping代码将以下源结构命名空间转换为目标结构命名空间格式

源结构命名空间:

<?xml version=”1.0″ encoding=”UTF-8″?>
<PurchaseOrderDocument creationDate=”2017-09-26T18:37:48.837Z” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:dssuid=”urn:autoid:specification:universal:Identifier:xml:schema:1″ xmlns:dsscore=”urn:autoid:specification:interchange:PMLCore:xml:schema:1″>
    <PurchaseQuery>
        <EventDate>20170926</EventDate>
        <bizLocation>
            <id>urn:ddd:id:sgln:0315563.00000.0</id>
        </bizLocation>
        <Serialization>
            <BATCH_ID>3091145AB</BATCH_ID>
            <EXPIRATION_DATE>20190504</EXPIRATION_DATE>
            <PRODUCTION_DATE>20170505</PRODUCTION_DATE>
            <GTIN>04028691544401</GTIN>
            <Count>8088</Count>
        </Serialization>
    </PurchaseQuery>
</PurchaseOrderDocument>

预期目标结构名称空间是

<?xml version=”1.0″ encoding=”UTF-8″?>
<ns0:PurchaseOrderDocument creationDate=”2017-09-26T18:37:48.837Z” xmlns:ns0=”urn:global:mns:PurchaseOrder”>
    <PurchaseQuery>
        <EventDate>20170926</EventDate>
        <bizLocation>
            <id>urn:ddd:id:sgln:0315563.00000.0</id>
        </bizLocation>
        <Serialization>
            <BATCH_ID>3091145AB</BATCH_ID>
            <EXPIRATION_DATE>20190504</EXPIRATION_DATE>
            <PRODUCTION_DATE>20170505</PRODUCTION_DATE>
            <GTIN>04028691544401</GTIN>
            <Count>8088</Count>
        </Serialization>
    </PurchaseQuery>
</ns0:PurchaseOrderDocument>

0 个答案:

没有答案