This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: link from HTML to docbook HTML
- To: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: link from HTML to docbook HTML
- From: Bob McIlvride <robert at cogent dot ca>
- Date: Thu, 09 Aug 2001 16:55:48 -0400
- Organization: Cogent Real-Time Systems, Inc.
- References: <3B72F57F.B6B30589@xs4all.nl>
klaas holwerda wrote:
> But in case of the first section within a chapter, the first section is
> placed on the same page as the chapter and
> its table of contents, so no seperate file.
> Therefore next question would be how can i control that (certain)
> sections get placed on seperate pages.
You can have each section start on a new page by turning on chunking.
(Check the archives of this list for how to do that.) But you don't need
sections on separate pages in order to link directlly to them. For
example, this link:
http://24.112.178.91/cogent/prepdoc/pd-customizingthedssslstylesheets.html#PD-COGENTBOTHDSLFILE
takes you directly to a sect2 that starts in the middle of a page. It
happens to be embedded in a sect1 that is in a new page, but it could be
anywhere. Notice that the "#XXXXXXXXXX" corresponds to the tag id shown
below. The start tag for the element (which happens to be a sect1) that
starts the page is:
<sect1 id="pd-customizingthedssslstylesheets">
The sect2 start tag is:
<sect2 id="pd-cogentbothdslfile">
The processor converts the lower case to upper case and puts it after
the .html#. To get this behavior, you need to set the following
parameter to "#t" in your stylesheet customization layer:
(define %use-id-as-filename%
;; Use ID attributes as name for component HTML files?
#t)
Hope this helps.
Cheerio!
Bob
---------------------------------------
Robert McIlvride (robert@cogent.ca)
Cogent Real-Time Systems (www.cogent.ca)
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org