如果我有以下 XML 文档...
<?xml version="1.0"?>
<document>
<title>Foobar</title>
<article>
Phasellus ultrices arcu suscipit velit laoreet eu dignissim
dolor pulvinar. Proin ac libero a diam laoreet iaculis nec eu risus.
<ref url="http://en.wikipedia.org/wiki/FooBar">Foobar</ref> potenti.
Duis placerat laoreet est nec fringilla. Quisque vitae semper erat.
</article>
</document>
...我如何将article
元素翻译成以下内容?
<p>
Phasellus ultrices arcu suscipit velit laoreet eu dignissim
dolor pulvinar. Proin ac libero a diam laoreet iaculis nec eu risus.
<a href="http://en.wikipedia.org/wiki/FooBar">Foobar</a> potenti.
Duis placerat laoreet est nec fringilla. Quisque vitae semper erat.
</p>
具体来说,这是我感兴趣的翻译,因为它嵌入在纯文本块中ref
。a