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: Re: Customize user.footer.content for one webpage only?


On Thu, 04 Dec 2008 19:42:12 +0100, Bob Stayton <bobs@sagehill.net> wrote:

> In the chunk-element-content template there isn't enough information to  
> distinguish between the context of the index.html chunk and the lots  
> chunk. So I think you would have to customize two templates.
>
> 1.  Customize the template named process-chunk in html/chunk-common.xsl  
> to change the call to chunk-element-content to include an additional  
> parameter named filename, which is set to $filename (that variable is  
> set just before the call to write.chunk).
>
> 2.  Then customize the chunk-element-content template to accept the new  
> parameter and add an xsl:choose statement to act on its value.

Thanks again for your help, Bob! Is it actually possible to call the  
original chunk-element-content template from the customized  
chunk-element-content template? If I just add <xsl:call-template  
name="chunk-element-content"> obviously I get a recursion. So far I copy  
the template's content into the xsl:choose statement. Calling the original  
template would be nice though?

Boris

> [...]



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