Hi again,

I got the style of chapter/sect numbering I wanted by adding another n to the 
front of each group in collapsible.imp which then included the Chapter number 
in each section title which is GREAT (exactly what I wanted to do)

However, I still can't seem to get the chapters to NOT reset to 1 within each 
new part.  I tried several things (the use of the n and the - still aren't 
clear to me) in the Chapter definition in collapsible.imp:

/* I added a dash BEFORE the first n but this didn't do anything */
chapter > title:first-child:before {  content: collapser() " Chapter " 
counter(-n-, decimal) ": "; }

/* I removed the dash after the n but this caused the chapter number to NOT 
increment at all */
chapter > title:first-child:before {  content: collapser() " Chapter " 
counter(n, decimal) ": "; }

So the - seems to trigger the incrementing within the parent, but since the 
part is always the parent of chapter, that means I can't make the chapter 
numbers incremener 1,2,3,4,5,6... even if Part I surrounds 1,2,3 and Part II 
surrounds 4,5,6... 

This is easy to do in the HTML and PDF xsls (there is a parameter that sets 
whether chapter numbers reset within part or not) but apparently not so easy to 
do with the non-standard CSS implementation of counters for XMLMind unless I am 
missing something obvious.

Your assistance is very helpful.  I know that I am not yet a paying customer, 
but if my evaluation is successful, I expect my company will buy licenses since 
they want to do their documentaiton using Docbook and your tool seems to be the 
best on the market (our writers are really hating giving up Framemaker but I 
think XMLMind will make believers out of them).

Thanks!

Jon Rosen 




>  -------Original Message-------
>  From: Hussein Shafie <hussein at xmlmind.com>
>  Subject: Re: [XXE] About customizing the Docbook WYSIWYG view in XML Mind
>  Sent: 27 Sep '06 08:43
>  
>  jon at stagelightproductions.org wrote:
>  > When I look at the word processing view in XMLMind of a Docbook document, 
> there are strange things like you don't get the Chapter numbers attached to 
> the sections, if you use Parts, each group of chapters in a part start over 
> numbering, etc.??These are all things that can be easily customized using XSL 
> parameters when converting to HTML or PDF, but I don't know how to fix these 
> in the XMLMind editing view itself.??Can this be done?
>  >
>  
>  There is nothing strange in what you describe. Numbering chapters and
>  sections this way is just a matter of personal taste.
>  
>  All this is specified in XXE_install_dir/addon/config/docbook/css/
>  Look at docbook1.imp and/or collapsible.imp.
>  
>  Please make sure to read this:
>  http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/counters.html
>  if you want to understand our non-standard implementation of counter().
>  
>  Note that there are means to customize the DocBook CSS style sheets
>  without directly modifying the files found in
>  XXE_install_dir/addon/config/docbook/css/
>  
>  This is described here:
>  http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html
>  

Reply via email to