Hi, I'm creating customized CSS stylesheet for DocBook based vocabulary. In Author I need to prepend Figure X.Y label before each figure title. Where X is chapter number and Y is number of figure inside chapter. I'm doing this by providing additional styleheet in framework that is extending DocBook framework:
figure > title:before {
content: "Figure " counter(chapter_count) "." counter(figure) " ";
}
figure {
counter-increment: figure;
}
chapter > title:before {
counter-reset: figure sect1_count;
}
This works as expected in desktop Author. However in Web Author figure
number is being reset for each section, so for example for document like
<chapter>
...
<section>
...
<figure> <!-- 1.1 -->
...
</section>
<section>
...
<figure> <!-- 1.2 -->
...
</section>
</chapter>
Web Author labels both figures as 1.1.
I have briefly looked into HTML/CSS code of Web Author and it seems that
you are somehow preprocessing Author CSS stylesheet for browser and this
particular case is not handled properly.
I suppose there is no easy workaround for this, but perhaps next version
of Web Author could fix this ;-)
Many thanks and have a nice day,
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: [email protected] http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature
_______________________________________________ oXygen-user mailing list [email protected] https://www.oxygenxml.com/mailman/listinfo/oxygen-user
