Next in thread → Next in month →

Re: [docbook-apps] Re: Re: Customize user.footer.content for one webpage only?

From
Bob Stayton <>
Date
2008-12-04T21:14:19+00:00
ID
008701c95655$3c98b720$6700a8c0@pazu
Thread
Re: [docbook-apps] Re: Re: Customize user.footer.content for one webpage only?
No, there isn't something like xsl:apply-imports to a named template, so you 
can't call the original that way.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Boris" <>
To: <>
Sent: Thursday, December 04, 2008 1:05 PM
Subject: [docbook-apps] Re: Re: Customize user.footer.content for one 
webpage only?


> On Thu, 04 Dec 2008 19:42:12 +0100, Bob Stayton <> 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
>
>> [...]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →