On Thu, 04 Dec 2008 19:42:12 +0100, Bob Stayton <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to