Пожалуйста, помогите мне с кодом XSLT для моего требования.
Структура ввода:
<n1:invoice_put_invoice_with_metadataResponse xmlns:n1='https://system.test.com/' env:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <return xsi:type='n1:InvoiceStatus'> <file_statuses xsi:nil='true'/> <invoice_id xsi:type='xsd:string'>1234</invoice_id> <status xsi:type='xsd:string'>SUCCESSFULLY</status> </return> </n1:invoice_put_invoice_with_metadataResponse>
Структура вывода:
<?xml version="1.0" encoding="UTF-8"?> <ns0:return xmlns:ns0="https://system.test.com/"> <status></status> <file_statuses ns1:arrayType="" xmlns:ns1="http://schemas.xmlsoap.org/soap/encoding/"><file_statuses/> <invoice_id><invoice_id/> </ns0:return>
Спасибо!