← Prev in month ← Prev in thread

generate.toc and scope parameter

From
David White <>
Date
2006-02-20T19:51:31+00:00
ID
007701c63657$5422a890$
Thread
generate.toc and scope parameter
Hello 
everyone!

I'm still 
working on my issues with our multi-lingual book which contains articles with 
matching id's.  This causes are TOCs rendered in each article to be 
wrong.  So, I'm looking at how our index's are done since they are being 
rendered the way we need our TOCs to work.

I have a bit of 
XSLT code that looks like this;

<xsl:choose>

<xsl:when test="/book/article[@lang = 
$lang]">

<xsl:call-template name="generate-index">

<xsl:with-param name="scope" select="/book/article[@lang = $lang]"/>

</xsl:call-template>

</xsl:when>

<xsl:otherwise>

<xsl:call-template name="generate-index">

<xsl:with-param name="scope" select="."/>

</xsl:call-template>

</xsl:otherwise>

</xsl:choose>

 

Is it possible to have a generate-toc use 
a scope as well so that it makes a TOC only for an article of a given 
language?

 

Thanks!

David 
White
← Prev in month ← Prev in thread