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: Re: DOCBOOK: xref or link?



Bob McIlvride wrote:
> 
> Laurent Pointal wrote:
> > I dont know if this can change the result, but where do you put the id
> > definition ? In the title tag or in the chapter tag ?
> 
> In the chapter tag.  Jade doesn't appear to support xrefs to titles.
> When I tried, I got this message:
> 
> jade:../main.sgml:43:2:E: [xref to TITLE unsupported]

Make chapter target of your xref and then change rendering of xref in
DSSSL stylesheet. Look at file common/dbl1en.dsl and modify following
lines

	(list (normalize "chapter")     (if %chapter-autolabel%
					    "&Chapter; %n"
					    "the &chapter; called %t"))

to

	(list (normalize "chapter")     (if %chapter-autolabel%
					    "&Chapter; %n - %t"
					    "the &chapter; called %t"))

%t is substitued by chapter title. Cleaner method than directly
modifying stylesheets is place whole (en-xref-strings) definition into
your customized stylesheet. 

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


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