Mark Fletcher wrote:
>  
> I'm taking a look a v3.3.0 and I'm trying to use a conref from a
> topicgroup in map A to a topicrgroup in map B. Should this be supported?

Sure.



> I'm getting this error message:
>  
> /map/topichead/topicgroup:
> conref target "Untitled.ditamap#map_conref_test/group_conref_test" not found
>  
> In this path, Untitled.ditamap is in the same directory as the
> referencing map; map_conref_test is the map @id and group_conref_test is
> the topicgroup @id. Is there something wrong with my path syntax?

I'm really not a DITA expert but I would say that the URL should be
"Untitled.ditamap#group_conref_test".

The id attribute of a topicgroup (unlike the id of a topicref) has type
ID and, in my understanding, should not be specified as a *scoped* id
(i.e. map_conref_test/group_conref_test).

I have reproduced what you did (see attached screen shot) but instead of
typing paths (which is tedious and error prone), I have used the "F2
c"/"F2 v" keyboard bindings ("F2 c"=copy conref target, "F2 v"=paste to
conref source) as explained in
http://www.xmlmind.com/xmleditor/_distrib/doc/dita/setconref.html, and
everything worked smoothly.

Now, we may be 100% wrong in thinking that an id attribute having type
ID should not be scoped, and in such case, it would be nice to tell us
where all this is clearly explained[*] and we will fix it in next release.

Note that there should be no problem at all with topics, tasks,
concepts, etc.



> A related question: as you mention in your doc, using @conref in maps
> will not be commonly used. (My @conref test above is just that--a test.)
> However, I do use (and I think many others will use) the 
> @format="ditamap" option in <topicref> to include other entire maps in
> publishing output. In this case, during publishing, the topicref is
> replaced by the contents of the map it points to. The DITA-OT fully
> supports this, so my publishing is working just fine. But I'm wondering
> if you would be able to support this as yet another inclusionProcessor 
> type. Currently, I'm using a whole bunch of CSS xpath statements to show
> a "read-only" view of the first-level map children. But it would be very
> cool if you could actually transclude this content.

We didn't know about this feature (which does not leverage the conref
mechanism).

Once again we are not DITA experts and it will take us years to learn
which are the best practices of DITA authors, and therefore it will take
us years to implement these best practices.

We are not going to implement what you have requested in next release
because we plan to ``integrate'' the DITA-OT (don't ask us how!), and we
think that's a sufficient step for v3.4.



---
[*] In order to learn about the fine points of conref, we had to read
the XSLT source code of conref.xsl, which is part of the DITA-OT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conref_topicgroup.png
Type: image/png
Size: 33124 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060619/5b23bd75/attachment.png
 

Reply via email to