[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: infinite output (xsltApplyOneTemplate: loop found ???)
Michael(tm) Smith wrote:
> Sam Steingold <sds@gnu.org>, 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.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]