This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: generating context-dependant elements in source tree
- From: qmax <qmax at sibmail dot ru>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: qmax at sibmail dot ru, docbook at lists dot oasis-open dot org
- Date: Mon, 28 Oct 2002 17:48:18 +0600
- Subject: Re: DOCBOOK: generating context-dependant elements in source tree
- References: <20021027194114.GC3648@lair> <20021028000333.A21017@caldera.com>
- Reply-to: qmax at sibmail dot ru
On Mon, Oct 28, 2002 at 12:03:33AM -0800, Bob Stayton wrote:
>On Mon, Oct 28, 2002 at 01:41:14AM +0600, qmax wrote:
>> Hello.
>>
>> This problem probably due to my lamerness and missing some points,
>> but however, i cannot find clean answer anywere.
>>
>> The problem is to automatically generate some elements, dependant on
>> context.
>>
>> Egg, to create title "The Foo of Bar" in a section, wich has role='foo'
>> and is within section titled "Bar".
>>
>> At my opinion, this leads to creating a children node in source tree,
>> and then passing that tree through templates.
>>
>> How to achieve this w/out creating own XSLT procssor ?
>
>An XSLT stylesheet can generate elements, dependent on the
>context. But I'm not clear on what you are trying to accomplish.
>Are you trying to put the title "The Foo of Bar" in the
>output (HTML, FO, ?), or are you trying to generate a new
>version of the XML document that replaces the section
><title>Bar</title> with <title>The Foo of Bar</title>?
Trying to CREATE element <title> in a setion, an then pass
a tree of section+title through the original docbook templates,
to generate toc entries and all that stuff.
I guess this should be done on two passes: first creating
missed titles and other elements; and second transforming result
of first pass into HTML, FO, or whatever.
--
qMax