以下のことができる XSLT を探しています。
XML メッセージをクイック ソープ エンベロープ (xml) でラップしようとしています。ソース XML は固定されていないため、XSLT は XML が何であるかを気にする必要はありません。XML の先頭から XML 宣言を削除する必要があります。
例:
<?xml version="1.0"?>
<foo>
<bar />
</foo>
に変換:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:hl7-org:v3">
<soapenv:Header/>
<soapenv:Body>
<foo>
<bar />
</foo>
</soapenv:Body>
</soapenv:Envelope>
例 2:
<lady>
<and>
<the>
<tramp />
</the>
</and>
</lady>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:hl7-org:v3">
<soapenv:Header/>
<soapenv:Body>
<lady>
<and>
<the>
<tramp />
</the>
</and>
</lady>
</soapenv:Body>
</soapenv:Envelope>