您好我想創建一個HTML表格,其中顯示一列中的數字(年)和第二列中的數據。下面是我的xslt。我很困惑,因爲他們有相同的標籤。在XSLT腳本中感到困惑
<chapter>
<row>
<entry>
<para>1984</para>
</entry>
<entry>
<para>International Business Companies Act passed into
law.</para>
</entry>
</row>
<row>
<entry>
<para>2004</para>
</entry>
<entry>
<para>BVI Business Companies Act passed into law, coming into
force on 1 January 2005.</para>
</entry>
</row>
<row>
<entry>
<para>2005</para>
</entry>
<entry>
<para>All three corporate statutes exist in parallel and it is
possible to incorporate companies under any of them.</para>
</entry>
</row>
<row>
<entry>
<para>2006</para>
</entry>
<entry>
<para>Incorporation provisions in the International Business
Companies Act and the Companies Act are repealed on 31 December
2005; the Acts remain in force but new companies may only be
incorporated under the BVI Business Companies Act.</para>
</entry>
</row>
</chapter>
感謝
這是不是給一個表格O/p – 2013-02-19 10:04:15
對不起,但我不知道你的意思與o/p。 如果我所做的假設是正確的,則輸出會生成一個HTML表格,具體取決於您的XML。你可以發佈你的完整XML嗎? – 2013-02-19 10:14:08
對不起,我編輯了代碼。也請告訴我,是否有辦法只選擇第一個元素。 –
2013-02-19 11:03:57