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] 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
bobs@sagehill.net


----- Original Message ----- 
From: "Boris" <boriss@web.de>
To: <docbook-apps@lists.oasis-open.org>
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 <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
>
>> [...]
>
>
> ---------------------------------------------------------------------
> 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]