Nevermind, I totally broke this with a customization. I overrode
match="section/title" (in sections.xsl) and left some bits out.
Thanks!
-- Dan
On Wed, 23 Aug 2006, Bob Stayton wrote:
> 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, >> href="c1.html#c1c2">a link!, but for that to work, c1.html also needs
>> to contain ... 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
>>>
>>>
>>> >>>
>>> "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
>>> <book id="BadAnchors">
>>> <bookinfo>
>>>
>>> </bookinfo>
>>>
>>> <chapter id="c1">
>>>
>>> <para>Text text text.</para>
>>>
>>>
>>> <para>Text text text.</para>
>>>
>>>
>>>
>>> <para>Text text text.</para>
>>>
>>>
>>>
>>> <para>Text text text.</para>
>>>
>>> </chapter>
>>>
>>> <chapter id="c2">
>>>
>>>
>>>
>>> <para>Text text text.</para>
>>>
>>>
>>>
>>> <para>Text text text.</para>
>>> <para>A link, a link! My kingdom for a
>>> link!</para>
>>>
>>>
>>>
>>> <para>Text text text.</para>
>>>
>>> </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
>>
>>
>>
>
>
>