[oXygen-user] count elements part 2

Oxygen XML Editor Support support at oxygenxml.com
Wed May 23 02:41:49 CDT 2012


Hi Roderick,

The Author page in Oxygen has very limited support for CSS 3 selectors.
It does not support the "nth-child" CSS selector.
But it does support CSS counters, so you could write your CSS something 
like this:

> example{
>      display:block;
>      counter-increment: exampleCounter;
> }
> example:before{
>     content: counters(exampleCounter, ".", decimal) " ";
> }
> examples{
>     counter-reset:exampleCounter;
> }


Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 5/22/2012 4:50 PM, Roderik Dernison wrote:
> Hi,
>
> As a follow-up of my previous question: is it possible to let css
> generate indexes for items?
>
> I.e.
>
> <examples>
>
> <example>
>
> <title>This is the first example</title>
>
> </example>
>
> <example>
>
> <title>This is the second example</title>
>
> </example>
>
> </examples>
>
> With something like:
>
> example:nth-child(n):before{
>
> content: n;
>
> }
>
> To show:
>
> 1.This is the first example
>
> 2.This is the second example
>
> Kind regards,
>
> Roderik Dernison
>
>
> ------------------------------------------------------------------------
>
> ----------------------------------------------------------
> 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 at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user


More information about the oXygen-user mailing list