如何在使用XSLT的元素之前删除名称空间前缀

时间:2011-02-18 17:06:19

标签: xslt

我有一个XML,如下所示。理想情况下,我希望在CheckResponse标记之前删除名称空间前缀。它最终应该看起来是<CheckResponse>而不是<def:CheckResponse>

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:def="http://www.test.com/DefaultNameSpace/">
    <soapenv:Header/>
    <soapenv:Body>
        <def:CheckResponse>
            <CheckResponseHeader>
                <CheckResponseNumber>
                    <CheckBuyerOrderNumber>450982323438</CheckBuyerOrderNumber>
                </CheckResponseNumber>
            </CheckResponseHeader>
            <CheckResponseSummary>This is for Response</CheckResponseSummary>
        </def:CheckResponse>
    </soapenv:Body>
 </soapenv:Envelope>

此致 Ravi Kumar A

0 个答案:

没有答案