我已經編寫了一個將xml轉換爲xml的XSLT。 輸入XML: <test>The Spanish word for "Spain" is "Espa a" Dagon his Name, Sea Monster</test>
OutputXML: <test>The Spanish word for "Spain" is "Espa a" Dagon his Name, Sea M
互聯網上有很多引用與我有同樣的問題。這是命名空間的添加,我看到了和我一樣的這個:Adding namespace in inner parent group in xslt v2.0。但在我的情況下,我沒有父標記中的名稱空間,並將名稱空間插入到內層組中。我試圖複製解決方案,但無法獲得預期的輸出結果。例如,我有這樣的樣本文件, 輸入: <Record>
<Data>
<Section>