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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] A spot for very dynamic text?


This will require some stylesheet customization, so you will need to do some XSL programming.  You should be able to copy enough of the templates for handling variablelist to your customization to get the formatting you need.  Then you just need to trigger the processing and select the nodes to process.  I'm not sure how much XSLT you know, so I'll just outline the solution here.
 
It sounds like you need to indicate in the chapter source where the generated list should go.  If so, then a processing instruction could be place at that selected point in each chapter.  A processing instruction can trigger an XSL template to generate the list if the template has match="processing-instruction()" with an additional qualifier for your processing instruction name.
 
Yes, the list can get whatever level 1 sections are in a chapter. The generated list should be based on an XPath selection of section elements, probably using the following-sibling axis since you only want the top level sections.  You can use xsl:apply-templates with a select attribute that selects those nodes, and use a mode attribute so you get your special section list templates.   
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Thursday, September 16, 2004 1:29 AM
Subject: [docbook] A spot for very dynamic text?


Hello!

I am rather new to docbook and could not find a solution for this problem:

Say I have a <chapter> 1 with an <abstract>, some text and three <sect1>: 1A, 1B, 1C.
Each of these sections starts with a <title> and a short <abstract>.

During processing, in the chapter 1 text section before 1A starts, I want to automatically create something that looks like an ordinary <variablelist>, with the titles of 1A to 1C being the <term>s (with links to the <sect1>s) and the abstracts being the corresponding <listitem>s.

My problems:
- What shall be used to indicate where exactly this should be created (not always immediately before 1A)?
- Does this solution react automatically, if I add a possible <sect1> 1D, 1E...

Thanks in advance!

Greetings,

Michael
__________________________

Michael Valent
Text Services

BOC Information Systems GmbH
Rabensteig 2
A-1010 Wien
+43/1/513 27 36-17 Fax: -28
michael.valent@boc-eu.com
http://www.boc-eu.com
__________________________

Dieses E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Falls Sie nicht der richtige Adressat sind oder dieses E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieses Mails ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

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