highlight only child element

Hi, I'm improving my stylesheet for my topics in oXygen. I was able to put indices before numbered items in lists. But when a list contains only one element no index should be shown. <ul> <li>First</li> <li>Second</li> </ul> Should be shown as: a. First b. Second But: <ul> <li>Single</li> </ul> Should be shown as: Single I have tried the css markup li:only-child which works for html in Firefox. Kind regards, Ing. Roderik Dernison Programmeur/ontwikkelaar INL * Schatkamer van de Nederlandse Taal Matthias de Vrieshof 2 * Kamer 106a * 2311 BZ Leiden Tel. +31 (0)71 527 2491 * www.inl.nl<http://www.inl.nl/> ________________________________ ---------------------------------------------------------- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien het bericht niet voor u is bestemd, verzoeken wij u dit aan ons te melden en het bericht te verwijderen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us and delete the message. ----------------------------------------------------------

Hi Roderik, Sorry, but we do not yet support the CSS 3 "only-child" selector. We'll schedule this for a future version and contact you when we do. I cannot think of a workaround right now for your case. What exactly is your use case, why would anybody want lists which just one element? Some of our users actually created custom validation in order to signal such cases as errors. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 11/8/2012 3:08 PM, Roderik Dernison wrote:
Hi,
I’m improving my stylesheet for my topics in oXygen.
I was able to put indices before numbered items in lists. But when a list contains only one element no index should be shown.
<ul>
<li>First</li>
<li>Second</li>
</ul>
Should be shown as:
a.First
b.Second
But:
<ul>
<li>Single</li>
</ul>
Should be shown as:
Single
I have tried the css markup li:only-child which works for html in Firefox.
Kind regards,
Ing. Roderik Dernison Programmeur/ontwikkelaar
*INL **· **Schatkamer van de Nederlandse Taal*/ /Matthias de Vrieshof 2 · Kamer 106a · 2311 BZ Leiden
Tel. +31 (0)71 527 2491 · www.inl.nl <http://www.inl.nl/>
------------------------------------------------------------------------
---------------------------------------------------------- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien het bericht niet voor u is bestemd, verzoeken wij u dit aan ons te melden en het bericht te verwijderen.
This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us and delete the message. ----------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Oxygen XML Editor Support
-
Roderik Dernison