Menu

#589 Error when transforming GTK+ docs: xsl:attribute : node alre

output: HTML
closed-fixed
XSL (1066)
5
2004-12-07
2004-12-05
No

Download source for gtk+ 2.5.6, configure and build it.
The following problem occurs with the XSL stylesheets
version 1.67.2:

make[4]: Entering directory
`/home/mhz/RPM/BUILD/gtk+-2.5.6/docs/reference/gdk'
*** Building HTML ***
rm -rf ./html
mkdir ./html
cd ./html && gtkdoc-mkhtml gdk ../gdk-docs.sgml
Computing chunks...
runtime error: file
file:///usr/share/xml/docbook/xsl-stylesheets-1.67.2/common/titles.xsl
line 657 element attribute

The error occurs within this template fragment:

<xsl:apply-templates select="$target"
mode="xref-to-prefix"/>

<xsl:if test="$target/title or $target/*/title">
<xsl:attribute name="title">
<xsl:apply-templates select="$target"
mode="xref-title"/>
</xsl:attribute>
</xsl:if>

Does this indicate that the upper apply-templates
directive results in children added to the element?

Discussion

  • Robert Stayton

    Robert Stayton - 2004-12-07

    Logged In: YES
    user_id=193218

    I removed these lines, which should have been removed
    when this code was copied from the match="xref"
    template:
    <xsl:if test="$target/title or $target/*/title">
    <xsl:attribute name="title">
    <xsl:apply-templates select="$target" mode="xref-
    title"/>
    </xsl:attribute>
    </xsl:if>

     
  • Robert Stayton

    Robert Stayton - 2004-12-07

    Logged In: YES
    user_id=193218

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
  • Robert Stayton

    Robert Stayton - 2004-12-07
    • assigned_to: nobody --> bobstayton
    • status: open --> closed-fixed
     
  • Mikhail Zabaluev

    Logged In: YES
    user_id=313104

    Thank you, it doesn't produce an error anymore.