"Author" Display for display:list-item

Oxygen general issues.
laura.kelly
Posts: 2
Joined: Mon Dec 17, 2007 6:03 pm

"Author" Display for display:list-item

Post by laura.kelly »

I'm trying to set up an Author view CSS to use with my XML DTD. I've defined list-item this way:

list-item {
display:list-item;
list-style:lower-alpha;}

In the Author view, this shows up correctly as the lower-case letter "a" for the first item, but all subsequent list items also display with "a" and the correctly-incremented letter superimposed on the "a". I've tried variations of the list-style definition, and if it's specified at all, the items in 2+ have the value for the first item superimposed.

IE renders this as I expect, with just the consecutive letters. Mozilla just renders "0" for all of them, and Opera behaves the same way Oxygen does.

Anyone know how to get around this problem (short of changing my XML DTD)?

Thanks
lk
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Dear Laura,

Thank you for contacting us.
We tried to reproduce the problem using the sample CSS below:

Code: Select all

root, list {
margin-left:1em;
display: block
}

list_item {
display:list-item;
list-style:lower-alpha;
}
and a sample XML:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="test.css"?>
<root>
<list>
<list_item>li1</list_item>
<list_item>li2</list_item>
<list_item>li3</list_item>
<list_item>
<list>
<list_item>li4_li1</list_item>
<list_item>li4_li2</list_item>
</list>
</list_item>
</list>
</root>
and the list items seem to be correctly rendered.

Can you send us to our support email address (support at oxygenxml dot com) some screen shots with how the XML is rendered in Oxygen and how it is rendered in IE?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
laura.kelly
Posts: 2
Joined: Mon Dec 17, 2007 6:03 pm

My dumb mistake...

Post by laura.kelly »

Radu,

I tested with your example and got normal results, so I looked more closely in my CSS and found the problem.

(Which, if you're curious, was a errant display:inherit on the p element inside list-item.)

Sorry for the trouble.
lk :oops:
Post Reply