XML ドキュメントの表示をカスタマイズする CSS を作成しています。基本的に、子要素の表示をカスタマイズして、HTML OL/UL/LI 要素と同様にレンダリングしたいと考えています。
私のXMLは次のように構成されています:
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<transcription>
<turn>
<speaker>Speaker Name</speaker>
<clause>
text here
</clause>
<clause>
one or more clauses
</clause>
</turn>
</transcription>
私のCSSは次のようになります。
turn {
counter-reset: item;
}
turn clause {
display:list-item;
}
clause {
content: counter(item);
counter-increment: item;
}
私はこのサイトを使用しています: http://www.xml.com/lpt/a/401と基本的に同様のドキュメントがあります http://www.xml.com/2000/03/29/tutorial/examples/display1.xml、問題は、display1.xml が firefox で機能しないことです。IE、Safari、Chromeなどで動作します。
他のブラウザーと同様に、Firefox で機能するリンクまたは機能を提供できますか?