freelanceprogrammers.org Forum Index » XML / XSL
Firefox rendering of CSS-defined ordered lists in arbitrary
Joined: 05 May 2005
Posts: 6
Firefox rendering of CSS-defined ordered lists in arbitrary
[This question may be a little outside of the general interest of
xml-doc, but undoubtedly some here have encountered this issue when
trying to use CSS to render some non-XHTML XML document using a web
browser.]
O.k., I give up. I surrender. Shoot me and put me out of my misery.
I`ve been trying to figure out how to render, using CSS, ordered lists
in arbitrary (non-HTML) XML documents.
Here`s an example XML document:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="orderedlist.css" type="text/css"?>
<orderedlist>
<listitem>First list item</listitem>
<listitem>Second list item</listitem>
<listitem>Third list item</listitem>
</orderedlist>
According to my interpretation of CSS2/2.1, the following CSS should
work for all CSS2/2.1-conforming user agents (no counters needed
unless one wants to do some non-conventional list item numbering):
orderedlist {display: block;
margin-left: 2.0em;
list-style-type: decimal}
listitem {display: list-item}
Both Opera 8 and IE6 display the above example XML document correctly
using this CSS style sheet, but Firefox gives all "0." for the list
item numbering.
So, I`ve been playing around with various counter mechanisms and the
like (which I`m not an expert at), and have been frustrated. A Google
search did not reveal anything useful, so if the answer is findable
via Google, it`s well hidden. (I tried the old Mozilla custom CSS
"-moz-counter-reset" property, but nada -- couldn`t get it to work in
Firefox.)
So, how does one render, in Firefox, ordered lists in non-HTML XML
documents using CSS?
Thanks.
Jon Noring
Joined: 13 Jun 2003
Posts: 39
Firefox rendering of CSS-defined ordered lists in arbitrary
> I`ve been trying to figure out how to render, using CSS, ordered lists
> in arbitrary (non-HTML) XML documents. ...
>
> Both Opera 8 and IE6 display the above example XML document correctly
> using this CSS style sheet, but Firefox gives all "0." for the list
> item numbering.
FWIW, Camino 1.0 does the same thing (not surprising, since it`s also
using Gecko). Safari displays it correctly though.
Looks like a bug in the Gecko engine to me. Can you perhaps transform
the XML to do something more usable?
--
Larry Kollar, Senior Technical Writer, ARRIS CPE Products
"Content creators are the engine that drives
value in the information life cycle."
-- Barry Schaeffer, on XML-Doc
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







