On 10/19/11 11:26 PM, David Goodger wrote:
> On Wed, Oct 19, 2011 at 22:23, Paul Tremblay<paulhtremblay@...> wrote:
>> On 10/19/11 8:53 PM, David Goodger wrote:
>>> On Wed, Oct 19, 2011 at 16:53, Paul Tremblay<paulhtremblay@...>
>>> wrote:
>>>> On 10/19/11 4:38 PM, David Goodger wrote:
>>>>> <footnote auto="1" backrefs="id3 id10" ids="label" names="label">
>>>>> <label>2</label>
>>>>> <paragraph>Footnotes may be numbered, either manually (as in
>>>>> <footnote_reference ids="id9" refid="id8">1</footnote_reference>) or
>>>>> automatically using a"#"-prefixed label. This footnote has a
>>>>> label so it can be referred to from multiple places, both as a
>>>>> footnote reference (<footnote_reference auto="1" ids="id10"
>>>>> refid="label">2</footnote_reference>) and as a<reference anonymous="1"
>>>>> name="hyperlink reference" refid="label">hyperlink
>>>>> reference</reference>.</paragraph>
>>>>> <target anonymous="1" ids="id11" refid="label"/>
>>>>> </footnote>
>>>>>
>>>>> y comes to mind, but still).
>>>>>
>>>>> The "[1]_" actually references *another* footnote, not the footnote
>>>>> containing the reference itself.
>>>> Thanks. That clears things up.
>>>>
>>>> Then I am processing the XML wrong. The element "footnote_reference" has
>>>> the attribute "refid" of "label." The element "footnote" has the
>>>> attribute
>>>> "ids" of "label". I have been linking the "footnote_ref" to the
>>>> "footnote"
>>>> by these two attributes.
>>> [xsl omitted. sorry, I don't speak xsl]
>>>
>>>> How are they linked?
>>> Your understanding is right. Attribute refid links to attribute ids
>>> (or one of them; there can be multiple, space-separated). I don't
>>> understand your misunderstanding.
>>>
>> The parent footnote looks like this:
>>
>> <footnote auto="1" backrefs="id3 id10" ids="label" names="label">
>>
>>
>> The internal, child footnote reference looks like this:
>>
>>
>> <footnote_reference auto="1" ids="id10" refid="label" ...
> That's the "[#label]_" reference.
>
>> The internal footnote_reference refers back to its parent, or so it seems to
>> me. In the last email I though you said that the internal footnote reference
>> points to a different footnote.
> Different reference: "[1]_". Go back and read that message again more carefully:
>
>>>>> The "[1]_" actually references *another* footnote, not the footnote
>>>>> containing the reference itself.
>> But if I look at the footnote_reference
>> element, and get the refid of "label" and then follow that to the ids, I
>> find the parent itself. In other words, the reference points to its own
>> parent.
> There are two references inside that footnote. We're talking across each other.
>
>> I notice, too, that earlier in the document, the following XML occurs:
>>
>> <footnote_reference auto="1" ids="id3" refid="label">2</footnote_reference>
> That's from much earlier in the document, a "[#label]_" reference
> inside the first paragraph in the "Inline Markup" section.
>
>> So it seems that two footnote references point to the same footnote.
> True.
>
>> This is
>> further confirmed by the backrefs of the footnote element, which as a value
>> of "id3 id10", corresponding to ids="id3" of the first footnote_reference,
>> and ids="id10" to the second.
> Also true.
>
> Let's look at more context:
>
> """
> .. [1] A footnote contains body elements, consistently indented by at
> least 3 spaces.
>
> This is the footnote's second paragraph.
>
> .. [#label] Footnotes may be numbered, either manually (as in [1]_) or
> automatically using a "#"-prefixed label. This footnote has a
> label so it can be referred to from multiple places, both as a
> footnote reference ([#label]_) and as a `hyperlink reference`__.
>
> __ label_
> """
>
> The "[1]_" reference (in the second footnote, beginning ".. [#label]")
> refers to another footnote, namely the first one, beginning ".. [1]".
>
> The second footnote reference in the second footnote, "[#label]_",
> does refer to its parent footnote.
>
> There are two (2) footnote references above. Each refers to a
> different footnote.
>
> Clear?
>
Thanks. Yes.
Paul
|