APIを使用して、org.w3c.domとXPathを解析しようとしているXMLファイルを取得します。 XMLファイルの一部は、HTMLコンテンツを説明します。私はこれを実現する方法のJava org.w3c.domを使用してXMLを解析する
<p>Since 2001, state and local health departments in the US have accelerated efforts to prepare for bioterrorism and other high-impact public health emergencies. These activities have been spurred by federal funding and guidance from the US Centers for Disease Control and Prevention (CDC) and the Health Resources and Services Administration (HRSA)
<a href="link/B1">1</a>
<a href="link/B2">3</a> . Over time, the emphasis of this guidance has expanded from bioterrorism to include "terrorism and non-terrorism events, including infectious disease, environmental and occupational related emergencies"
<a href="link/B4">4</a> as well as pandemic influenza.
</p>
任意の提案:
<Para>Since 2001, state and local health departments in the US have accelerated efforts to prepare for bioterrorism and other high-impact public health emergencies. These activities have been spurred by federal funding and guidance from the US Centers for Disease Control and Prevention (CDC) and the Health Resources and Services Administration (HRSA)
<CitationRef CitationID="B1">1</CitationRef>
<CitationRef CitationID="B2">2</CitationRef> . Over time, the emphasis of this guidance has expanded from bioterrorism to include "terrorism and non-terrorism events, including infectious disease, environmental and occupational related emergencies"
<CitationRef CitationID="B4">4</CitationRef> as well as pandemic influenza.
</Para>
これは、のようなものになるでしょうか?主な問題は、タグを取得し、その位置を保持しながらタグを置き換えることです。ここで
これはXSLTのための完璧な仕事のように聞こえます。 XSLTコードのヘルプが必要な場合は、XSLTタグを質問に追加してください。 –