Discussion:
xref link end has a limit?
(too old to reply)
Fernando Martins
2003-08-27 14:25:38 UTC
Permalink
Hi all.

I'm using Docbook V4.2 and I'm experience some troubles with the xref
tag.
I'm getting the following error:
xref linkend to missing id MYIDENTIFIER
and therefor I cannot generate documents in some formats, PDF and HTML
in particular.

The problem is that "MyIdentifier" *is* correctly defined:
<sect2 id="MyIdentifier">
[...]
</sect2>

This seems to happen when I have "too many(?)"
<xref linkend="ANYIDENTIFIER"></xref> tags.
When I reduce the number of xref tags, the errors disapear.
What is even worst, the "missing" ids seems to be random...
Let me explain: the "missing" ids may be any defined identifier to
which I make a reference through the xref tag.
The document is syntactically correct. The problem seems to be the
number of xref tags, the more I have, the more "missing" id errors I
got. When start to reduce them, the problem decreases until it goes
away!

I do not believe that there is a maximum number of xref tags.
So am I doing something wrong?
Does anyone experienced this problem before?

Thanks for any help.
--
Fernando Martins
Peter Flynn
2003-08-30 00:12:19 UTC
Permalink
Post by Fernando Martins
Hi all.
I'm using Docbook V4.2 and I'm experience some troubles with the xref
tag.
xref linkend to missing id MYIDENTIFIER
and therefor I cannot generate documents in some formats, PDF and HTML
in particular.
<sect2 id="MyIdentifier">
[...]
</sect2>
This seems to happen when I have "too many(?)"
<xref linkend="ANYIDENTIFIER"></xref> tags.
When I reduce the number of xref tags, the errors disapear.
What is even worst, the "missing" ids seems to be random...
Let me explain: the "missing" ids may be any defined identifier to
which I make a reference through the xref tag.
The document is syntactically correct. The problem seems to be the
number of xref tags, the more I have, the more "missing" id errors I
got. When start to reduce them, the problem decreases until it goes
away!
I do not believe that there is a maximum number of xref tags.
The maximum number of ID/IDREFs you are allowed in a document is
defined in the SGML Declaration you are using, in the IDCAP and
IDREFCAP capacities. The default in the Reference Concrete Syntax
is 35000. It's nothing to do with the element type you are using
(XREF), it's a global limit on IDs and IDREFs. Edit your SGML
Declaration to raise it.

///Peter
Fernando Martins
2003-09-02 12:48:08 UTC
Permalink
Hello Peter.

Thank you very much for your answer.
Post by Peter Flynn
Post by Fernando Martins
Hi all.
I'm using Docbook V4.2 and I'm experience some troubles with the xref
tag.
xref linkend to missing id MYIDENTIFIER
and therefor I cannot generate documents in some formats, PDF and HTML
in particular.
<sect2 id="MyIdentifier">
[...]
</sect2>
This seems to happen when I have "too many(?)"
<xref linkend="ANYIDENTIFIER"></xref> tags.
When I reduce the number of xref tags, the errors disapear.
What is even worst, the "missing" ids seems to be random...
Let me explain: the "missing" ids may be any defined identifier to
which I make a reference through the xref tag.
The document is syntactically correct. The problem seems to be the
number of xref tags, the more I have, the more "missing" id errors I
got. When start to reduce them, the problem decreases until it goes
away!
I do not believe that there is a maximum number of xref tags.
The maximum number of ID/IDREFs you are allowed in a document is
defined in the SGML Declaration you are using, in the IDCAP and
IDREFCAP capacities. The default in the Reference Concrete Syntax
is 35000. It's nothing to do with the element type you are using
(XREF), it's a global limit on IDs and IDREFs. Edit your SGML
Declaration to raise it.
///Peter
Loading...