This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bold as emphasis role


"Kunath, Marcel" wrote:

> I tried the stuff below in mystyle.dsl file and it wouldn't work. I ended up
> searching for help what the words "customization layer" mean. Regarding to
> this page:
> 
> http://www.oasis-open.org/docbook/documentation/reference/html/ch05.html
> 
> customization layer are the *.mod files. Am I suppose to edit those?

This chapter describes customizations of DocBook DTD. This is not your
case, as DTD customizations are used when you want to add or remove some
DocBook elements.

Another thing you can customize are stylesheets. They define how DocBook
elements are presented. This is your case.
 
>         (element emphasis
>           (if (equal? (attribute-string (normalize "role")) "bold")
>             ($bold-seq$)
>             ($italic-seq$)))
> 
> which is slightly different from Jirka's suggestion and works(bolds, but
> does not italic) for me when put in mystyle.dsl file.

In fact it has same effect as my code. Compared expressions are just
present in different order.
 
If you want bold and italics at the same time, use $bold-italic-seq$
instead of $bold-seq$.

-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]