Checking before reporting a bug with "XRef to nonexistent id: "

View: New views
2 Messages — Rating Filter:   Alert me  

Checking before reporting a bug with "XRef to nonexistent id: "

by Johan Persson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Before I submit a minor bug I just wanted to check that this isn't already known
(I searched DocBook bug list but couldn't find anything similar.)

I'm using Docbook 1.74.0 with "html.xsl" transformation (the same results
happens with onechunk.xsl)

Basically I get the following error message when running either xsltproc or
Saxon 6.5

"XRef to nonexistent id: "

This happens when I reference an Id for a table in the title of a figure.

However this seems to be a bogus error since the links are generated correctly.
The following small example reproduces the problem when run with Saxon or
xsltproc. A tried to keep it as small as possible but still a valid
docbook document.


<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"  
      xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">  

        <chapter>
            <title>Chapter 1</title>
           
            <sect1>
                <title>Section1 Title</title>
               
                <para>Some text ...</para>    
               
                <table frame="all" xml:id="tab.the-table">
                    <title>Supported character entities in class SymChar</title>

                  <tgroup cols="1">
                        <thead>
                            <row>
                                <entry>Name</entry>
                            </row>
                        </thead>
                        <tbody>
                            <row>
                                <entry>"alpha"</entry>
                            </row>
                        </tbody>
                   </tgroup>  

                </table>

                <para>
                    <figure xml:id="fig.the-figure">
                        <title>Some title here
                             <xref xlink:href="#tab.the-table"/>  
                        </title>
                        <mediaobject>
                            <imageobject>
                                <imagedata fileref="the-image.png"/>
                           </imageobject>
                        </mediaobject>
                    </figure>
                </para>

            </sect1>
        </chapter>
</book>

Is this a known problem ?

/Johan

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: Checking before reporting a bug with "XRef to nonexistent id: "

by Keith Fahlgren-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jun 9, 2009 at 3:51 PM, Johan Persson<johanp@...> wrote:
> Is this a known problem ?

I'm not seeing it in the list of open bugs
(http://sourceforge.net/tracker/?limit=10&func=&group_id=21935&atid=373747&status=1&category=321159)
and have confirmed that it is still an issue in the current trunk.
Please report a new bug.

My initial guess is that xlink support has not been added to the
processing of xrefs in no.anchor.mode
(https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/common/titles.xsl).

FYI: @linkend works fine



Keith

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...