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: generating context-dependant elements in source tree


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


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