-3
我必須通過XSL將XML轉換爲另一個XML。我有以下XML從XML創建用於XML的XSLT
<?xml version="1.0" encoding="UTF-8"?><SKOS xmlns="http://www.w3.org/2004/02/skos/core#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:skosxl="http://www.w3.org/2008/05/skos-xl#">
<skos:descriptor ID="7769" TAGNO="111" ISVALID="true">
<skos:altLabel>ABYSSINIAN Expedition (1867-1868)</skos:altLabel>
<skos:prefLabel>Abyssinian Expedition (1867-1868)</skos:prefLabel>
<skos:broader>Ethiopia -- History -- 1490-1889</skos:broader>
<skos:broader>Great Britain -- History -- Victoria, 1837-1901</skos:broader>
<skosxl:hiddenLabel>Expedition to Abyssinia (1867-1868)</skosxl:hiddenLabel>
<skosxl:hiddenLabel>British Expedition to Abyssinia (1867-1868)</skosxl:hiddenLabel>
<skosxl:hiddenLabel>Magdala Campaign, 1867-1868</skosxl:hiddenLabel>
<skosxl:hiddenLabel>Napier Expedition, 1867-1868</skosxl:hiddenLabel>
</skos:descriptor>
</SKOS>
,我希望輸出這樣
<add>
<doc>
<field name="id">7769</field>
<field name="TAGNO">111</field>
<field name="altLabel">ABYSSINIAN Expedition (1867-1868)</field>
<field name="broader">Ethiopia -- History -- 1490-1889</field>
<field name="broader">Great Britain -- History -- Victoria, 1837-1901</field>
<field name="hiddenLabel">Expedition to Abyssinia (1867-1868)</field>
<field name="hiddenLabel">British Expedition to Abyssinia (1867-1868)</field>
<field name="hiddenLabel">Magdala Campaign, 1867-1868</field>
<field name="hiddenLabel">Napier Expedition, 1867-1868</field>
</doc>
我沒有得到如何利用它XSLT。
它藉機d。非常感謝。 – user