css - xml counting elements in a list does not work in firefox -


I am writing some CSS to optimize the performance of an XML document. Actually I want to customize the performance of hair elements and present them as HTML OL / UL / LI Elements.

My XML is structured like this:

  & lt; ? XML version = "1.0"? & Gt; & Lt ;? Xml-stylesheet type = "text / css" href = "style.css"? & Gt; & Lt; Transcription & gt; & Lt; Turn & gt; & Lt; Speaker & gt; Speaker's name & lt; / Speaker & gt; & Lt; Section & gt; Text here & lt; / Clause & gt; & Lt; Section & gt; One or more segments & lt; / Clause & gt; & Lt; / Turn & gt; & Lt; / Transcription & gt;  

My CSS looks like this:

  turn {counter-reset: item; } Turn segment {display: list item; } Section {content: counter (item); Per-pay increase: Items; }  

I am using this site: and basically there is a similar document, the problem is that display1.xml does not work in Firefox. I am working in IE, Safari, Chrome etc.

Can someone provide a link, or sensation that will work in Firefox, as well as other browsers?

It seems that there are some bugs in implementing Firefox display: list item property, special Counter value from I believe it gives rise to the zeroes that appear in Firefox, but not in Chrome.

My work is to forget about using 'display: list item' and instead of distributing items directly in the style so they appear as a list Give:

  transcription {counter-reset: item; } Segment {display: block; Margin-left: 40px; } Section: before {counter wage increase: item; Content: Counter (item) "."; }  

It works with the following XML:

  & lt ;? XML version = "1.0"? & Gt; & Lt ;? Xml-stylesheet type = "text / css" href = "style2.css"? & Gt; & Lt; Transcription & gt; & Lt; Turn & gt; & Lt; Speaker & gt; Speaker's name & lt; / Speaker & gt; & Lt; Section & gt; Text here & lt; / Clause & gt; & Lt; Section & gt; Text here & lt; / Clause & gt; & Lt; Section & gt; Text here & lt; / Clause & gt; & Lt; / Turn & gt;  

Let me know how you get ...

AL


Comments