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] customizing docbook and generating toc for new custom tag


Customizing next and prev in chunking is painful because the templates are 
really big.  See, for example, the template named 
"chunk-first-section-with-parent" in html/chunk-code.xsl.  You can see the 
big select attributes that pick the next and prev element for the chunk, 
which can be any of several elements depending on the document.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Webmaster" <Webmaster@comtrol.com>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, June 19, 2006 2:27 PM
Subject: RE: [docbook-apps] customizing docbook and generating toc for new 
custom tag


> Thank you, Perfect! That's what I needed!
>
> I'm also trying to get the "next" "prev" thing to work too. Any clues 
> into
> that?  Thanks to all who work on docbook - it's awesome!
>
>
> LN
>
> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sagehill.net]
> Sent: Monday, June 19, 2006 4:12 PM
> To: Webmaster; docbook-apps
> Subject: Re: [docbook-apps] customizing docbook and generating toc for
> new custom tag
>
>
> Hi,
> Take a look in html/autotoc.xsl.  A toc for HTML is created by calling 
> the
> 'make.toc' template with a parameter names 'nodes' that selects what
> elements to include at the next level of toc.  You will need to customize
> the select statement to include your new element names.
>
> And then you will need to create a new match template for each element in
> mode="toc" that handles that element.  Since your elements are parallel 
> to
> existing elements, you should be able to trace through how book, chapter,
> and section are handled to add your new element names.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message ----- 
> From: "Webmaster" <Webmaster@comtrol.com>
> To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
> Sent: Monday, June 19, 2006 1:47 PM
> Subject: RE: [docbook-apps] customizing docbook and generating toc for 
> new
> custom tag
>
>
>>I was hoping someone could help me with this. I'm trying to figure out 
>>how
>> to generate a TOC for a new custom tag that I've added.
>>
>> Thanks!
>>
>> Lauralyn
>>
>> -----Original Message-----
>> From: Webmaster
>> Sent: Tuesday, May 23, 2006 6:20 PM
>> To: docbook-apps
>> Subject: [docbook-apps] customizing docbook and generating toc
>>
>>
>> Hi.
>>
>> I'm really excited that I've gotten so far on my own as to doing this,
>> but
>> I'm really stuck on one thing.
>>
>> This is what I've done so far: I have created and am using my own
>> elements
>> (productcatalog, product, versions) in place of docbooks elements (book,
>> chapter,section respectively):
>>
>> <productcatalog> (root element of the xml)
>> <product id=skuofproduct>
>> <title></title>
>> <version></version>
>> </product>
>> </productcatalog>
>>
>>
>> I'm able to use the chucking algorithm of docbook successfully to chunk
>> at
>> the product level. Each page is appropriately named after the ID of the
>> product (which happens to be the sku)
>>
>> The one difficulty I'm still having is:
>>
>> 1) How can I generate a TOC of these new "sections"? Currently my
>> index.html
>> page comes up empty. is there a parameter ? I already have:
>>
>> <xsl:param name="generate.toc">
>> product  toc,title
>> </xsl:param>
>>
>> am I missing a template of some sort of mode or something?
>>
>>
>> If you can just point me to the stylesheets/templates I need to modify
>> that
>> would be great. I'm at a lost.
>>
>> Thank you!!!
>>
>> LN
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 




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