我有輸入XML文件。如下。查詢xpath,xml
<maindocument>
<first>
<testing>random text</testing>
<checking>random test</checking>
</first>
<testing>
<testing>sample</testing>
<checking>welcome</checking>
</testing>
<import>
<downloading>valuable text</downloading>
</import>
</maindocument>
這裏是輸出XML我想
<maindocument>
<import>
<doctype>Valuable</doctype>
<docint>text</docint>
</import>
</maindocument>
當我在谷歌搜索,我得到的結果爲XSL:Copy
。
轉換的可定位邏輯是什麼? – Utkanos 2012-07-31 12:58:58
您的整體需求不是很清楚。看起來你想丟棄''中的所有內容,除了''的內容,並轉換一些方法。但什麼是轉化的'內容'到標準''和'' –
psubsee2003
2012-07-31 13:01:37
使用XSLT的使用絕對或相對路徑我只需要從元素 –
karthic
2012-07-31 13:01:50