dita message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [dita] Question from keys review: addressing non-topicref elements in a map
- From: "Robert D Anderson" <robander@us.ibm.com>
- To: Chris Nitchie <chris.nitchie@oberontech.com>
- Date: Thu, 7 May 2015 12:34:28 -0500
> As for what happens when you keyref to a topicref, the answer is,
> whatever happens when you use a URI-based reference to a topicref in
> that context.
I think I phrased my question poorly.
If I've got this:
keyref="sampleKey/elementID"
What does that resolve to when:
- "sampleKey" is a topic? Should be clear - the element with id="elementID" inside of that topic
- "sampleKey" is a map? I think we're saying now - the element with id="elementID" inside of that map
- "sampleKey" is a topicref? This is my question -- is it the element with id="elementID" inside of that topicref? We don't scope ID's by topicref anywhere else, unlike topics. Is it the element with id="elementID" inside of the map that contains the topicref? That also seems painful.
Robert D Anderson
IBM Authoring Tools Development
Chief Architect, DITA Open Toolkit (http://www.dita-ot.org/)
Chris Nitchie <chris.nitchie@oberontech.com> wrote on 05/07/2015 12:10:10:
> From: Chris Nitchie <chris.nitchie@oberontech.com>
> To: Robert D Anderson/Rochester/IBM@IBMUS
> Cc: DITA TC <dita@lists.oasis-open.org>
> Date: 05/07/2015 12:10
> Subject: Re: [dita] Question from keys review: addressing non-
> topicref elements in a map
>
> <quote>
> Currently you can reference that with:
> keyref="chapter1"
> href="">>
> If we remove the "non-topicref" elements, it would then state that
> 'for references to elements within maps, the value of @keyref is a
> key name plus slash plus element ID', which I think is incorrect
> here -- because you just use the key name to reference this topicref.
> </quote>
>
> No, you don't. You use the key name to reference the content
> referenced by and/or text provided by that topicref, not the
> topicref itself. To reference the topicref, you must specify its ID,
> either in a keyref or URI-based reference.
>
> As for what happens when you keyref to a topicref, the answer is,
> whatever happens when you use a URI-based reference to a topicref in
> that context.
>
> Best,
>
> Chris
>
> > On May 7, 2015, at 12:56 PM, Robert D Anderson <robander@us.ibm.com> wrote:
> >
> > Currently you can reference that with:
> > keyref="chapter1"
> > href="">> >
> > If we remove the "non-topicref" elements, it would then state that
> 'for references to elements within maps, the value of @keyref is a
> key name plus slash plus element ID', which I think is incorrect
> here -- because you just use the key name to reference this topicref.
> [attachment "graycol.gif" deleted by Robert D Anderson/Rochester/IBM]
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]