我有这个输入
XML,我需要应用XSL并将其转换为另一个更高版本的XML.让我们说V3.所以输入XML是在版本V1上.
xmlns:NS1="http://www.test1/Error/v1"
xmlns:NS2="http://www.test1/Error/schema/SCRIPT"
xmlns:tns="http://www.test1/webservice/Service/v1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1
114
我申请的XSL是
xmlns:djh="http://www.test1/webservice/Service/v1"
xmlns:NS1="http://www.test1/Error/v1"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
我得到的输出是
xmlns:NS2="http://www.ncpdp.org/schema/SCRIPT">
1
114
它从xmlns中删除所有名称空间声明:NS1 =“http://www.test1/Error/v1”xmlns:NS2 =“http://www.test1/Error/schema/SCRIPT”xmlns:tns =“http: //www.test1/webservice/Service/v1“xmlns:xsd =”http://www.w3.org/2001/XMLSchema“xmlns:xsi =”http://www.w3.org/2001/XMLSchema-例如”
我想要的输出是
xmlns:NS1="http://www.test1/Error/v3"
xmlns:NS2="http://www.test1/Error/schema/SCRIPT"
xmlns:tns="http://www.test1/webservice/Service/v3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1
114
如果有人能让我知道我的XSL中缺少什么,我将不胜感激.