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: 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



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