2
所以我有一個包含XSLT包裹節點文本
...
<chapter>
<para>This line has a quote <quote id="one"/>. Here is some more text.</para>
<para>This also has a quote <quote id="two"/>. Here is some more text.</para>
</chapter>
<references>
<source id="one">
<author>Author 1</author>
<title>Title 1</title>
<year>2001</year>
</source>
<source id="two">
<author>Author 2</author>
<title>Title 2</title>
<year>2002</year>
</source>
</references>
...
一個XML文件,我想輸出一個XHTML
...
<p>This line has a quote <a href="#one>[1]</a>. Here is some more text.</p>
<p>This also has a quote <a href="#two>[2]</a>. Here is some more text.</p>
<h3>References</h3>
<ol>
<li><a name="one">Author 1, Title 1, 2001</a></li>
<li><a name="two">Author 2, Title 2, 2002</a></li>
</ol>
...
所以,我要的是裏面的文字報價與鏈接到參考列表中的項目。 我也想要參考文本中出現的順序。
+1正確答案。我會用',< XSL:模板>'。 –
2011-04-17 21:37:41
對於正確的答案+1。 – Flack 2011-04-18 05:20:40