← Prev in month ← Prev in thread

Re: infinite output (xsltApplyOneTemplate: loop found ???)

From
Sam Steingold <>
Date
2007-10-11T16:01:45+00:00
ID
Thread
Re: infinite output (xsltApplyOneTemplate: loop found ???)
Michael(tm) Smith wrote:
> Sam Steingold <>, 2007-10-10 16:37 -0400:
> 
>> yes, I just ran with http://docbook.sourceforge.net/release/xsl/snapshot/
>> and got
>> runtime error: file 
>> http://docbook.xml-doc.org/snapshots/xsl/common/titles.xsl line 79 element 
>> apply-templates
>> xsltApplyOneTemplate: loop found ???
> 
> Please try the following patch against your local copy of
> common/titles.xsl
> 
> Index: titles.xsl
> ===================================================================
> --- titles.xsl	(revision 7496)
> +++ titles.xsl	(working copy)
> @@ -671,7 +671,7 @@
>    <!-- nop, suppressed -->
>  </xsl:template>
>  
> -<xsl:template match="xref|link" mode="no.anchor.mode">
> +<xsl:template match="xref" mode="no.anchor.mode">
>    <xsl:variable name="targets" select="key('id',@linkend)"/>
>    <xsl:variable name="target" select="$targets[1]"/>
>    <xsl:variable name="refelem" select="local-name($target)"/>

this fixed the problem, thanks.
← Prev in month ← Prev in thread