Re: [dita] Question from keys review: addressing non-topicref elements in a map

From
Robert D Anderson <>
Date
2015-05-07T17:35:58+00:00
ID
Thread
Re: [dita] Question from keys review: addressing non-topicref elements in a map
> 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 <> wrote on 05/07/2015 12:10:10:

> From: Chris Nitchie <>
> To: Robert D Anderson/Rochester/IBM@IBMUS
> Cc: DITA TC <>
> 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 <> 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]