Yes the docbook: <link linkend="xxSection1">Section 1</link> <xref linkend="xxSection1"/></simpara>
looks like a bug, I wonder why nobody has ever noticed before. Possibly knowing they are going to have the xref generated by PDF most PDF users had no caption or everyone uses << >>. Generated pull request #80 with a proposed fix, any chance of you trying it? Cheers Lex On 28 June 2015 at 19:26, Jacques Nilo <[email protected]> wrote: > On Sunday, June 28, 2015 at 11:09:41 AM UTC+2, Lex Trotman wrote: >> >> Can you run a2x with the -k to keep the docbook and see what the >> difference is in the docbook between the two links. >> > Here is the xml part of section 4 when using xref: > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> > <?asciidoc-toc?> > <?asciidoc-numbered?> > > <article lang="en"> > <articleinfo> > <title>Program documentation</title> > <author> > <firstname>John</firstname> > <surname>Dow</surname> > </author> > <authorinitials>JD</authorinitials> > </articleinfo> > <section id="_chapter_1"> > <title>Chapter 1</title> > <section id="xxSection1"> > <title>Section 1</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection2">Section2</link> > <xref linkend="xxSection2"/></simpara> > </section> > <section id="xxSection2"> > <title>Section 2</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection1">Section 1</link> > <xref linkend="xxSection1"/></simpara> > </section> > <section id="xxSection3"> > <title>Section 3</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection1">Section 1</link> > <xref linkend="xxSection1"/></simpara> > </section> > <section id="xxSection4"> > <title>Section 4</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection1">Section 1</link> > <xref linkend="xxSection1"/></simpara> > </section> > </section> > </article> > > Here is the same part when using << >> > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> > <?asciidoc-toc?> > <?asciidoc-numbered?> > > <article lang="en"> > <articleinfo> > <title>Program documentation</title> > <author> > <firstname>John</firstname> > <surname>Dow</surname> > </author> > <authorinitials>JD</authorinitials> > </articleinfo> > <section id="_chapter_1"> > <title>Chapter 1</title> > <section id="xxSection1"> > <title>Section 1</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection2">Section 2</link></simpara> > </section> > <section id="xxSection2"> > <title>Section 2</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection1">Section 1</link></simpara> > </section> > <section id="xxSection3"> > <title>Section 3</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection1">Section 1</link></simpara> > </section> > <section id="xxSection4"> > <title>Section 4</title> > <simpara>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam > nonumy eirmod tempor invidunt ut > labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et > accusam et justo duo dolores</simpara> > <simpara>See also <link linkend="xxSection1">Section 1</link></simpara> > </section> > </section> > </article> > > > Jacques > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
