OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: docbook-apps Digest 2 Jan 2007 12:46:14 -0000 Issue 73


docbook-apps-digest-help@lists.oasis-open.org on Tuesday, January 2, 2007
at 4:46 AM -0800 wrote:
>In a single-file HTML document, created from a DocBook XML <article>,
>I'm using CSS to position the TOC fixed on the left side of the body
>text in the article, to get a "floating" navigation menu already shown
>(on reasonable browsers, that is...).
>
>One issue with this navigation menu, is that there is no TOC entry for
>showing all of the document, including the article title, and
>articleinfo stuff.
>
>Is it possible to get a TOC entry for the start of the article?  I've
>been studying Bob's book without findin anything:
>	http://www.sagehill.net/docbookxsl/TOCcontrol.html

I'm not sure if this would fit the bill for you, but perhaps what you want
could be accomplished with the CSS 'content' property.  I've used it to
announce the TOC.  It does not show up in MS's IE browser, but then a lot
of stuff doesn't work in that either.

div.toc:before {
	blah .. blah ..
	content: "Table of Contents";
}

The 'content' property also supports an 'attr(X)' function that I've never
used. It "returns as a string the value of attribute X for the subject of
the selector".  I've never used it but it sounds very useful and might
accomplish what you need in CSS.

Mark



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]