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] |
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.
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |