[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Anchors in XHTML output
Hi Dan, I think you meant href="c1.html#c1s2" (instead of c1c2). This works for me with the xhtml stylesheet. That is, there is anchor with name="c1s2" near the section title. What parameters are you setting? Do you get this problem with the stock DocBook XSL stylesheet? Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Dan Sanderson" <lists@dansanderson.com> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, August 23, 2006 10:45 AM Subject: Re: [docbook-apps] Anchors in XHTML output > > Clarifying my question with visuals: The link becomes, correctly, <a > href="c1.html#c1c2">a link!</a>, but for that to work, c1.html also needs > to contain <a name="c1c2">...</a> near the beginning of that section. It > doesn't. > > Thanks for any assistance you can provide! > -- Dan > > On Wed, 23 Aug 2006, Dan Sanderson wrote: > >> Hi docbook-apps - >> >> When I link to a section in the middle of a chunk, in XHTML output, I >> get a correct link, but I do not get an anchor on the actual section. >> Full example below. Am I not marking up the section properly, or the >> link, or is this a bug/missing feature in the XHTML templates? Does it >> work in the HTML templates? >> >> Thanks! >> -- Dan >> >> <?xml version="1.0" standalone="no"?> >> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.4//EN" >> >> "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> >> <book id="BadAnchors"> >> <bookinfo> >> <title>Test Anchors</title> >> </bookinfo> >> >> <chapter id="c1"> >> <title>Chapter 1</title> >> <para>Text text text.</para> >> <section id="c1s1"> >> <title>Chapter 1, Section 1</title> >> <para>Text text text.</para> >> </section> >> <section id="c1s2"> >> <title>Chapter 1, Section 2</title> >> <para>Text text text.</para> >> </section> >> <section id="c1s3"> >> <title>Chapter 1, Section 3</title> >> <para>Text text text.</para> >> </section> >> </chapter> >> >> <chapter id="c2"> >> <title>Chapter 2</title> >> <section id="c2s1"> >> <title>Chapter 2, Section 1</title> >> <para>Text text text.</para> >> </section> >> <section id="c2s2"> >> <title>Chapter 2, Section 2</title> >> <para>Text text text.</para> >> <para>A link, a link! My kingdom for <link linkend="c1s2">a >> link!</link></para> >> </section> >> <section id="c2s3"> >> <title>Chapter 2, Section 3</title> >> <para>Text text text.</para> >> </section> >> </chapter> >> >> </book> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]