On 03/21/2013 01:41 PM, Tyrin Avery wrote:
OK. How can you open a file referenced in a topicref or xref directly in XXE?
I've already answered this question in one of the emails I've sent you.
What follows is an excerpt of this message:
---
Tyrin Avery wrote:
> I need a way to open files
> specified in topicref elements in maps and xref elements in topics
> directly. Has that been introduced in the product.
Yes.
1) See "Edit referenced topic or map" in
http://www.xmlmind.com/xmleditor/_distrib/doc/dita/help-2.html#map_toolbar
The implementation is found in
XXE_install_dir/addon/config/dita/map_common.incl
---
<command name="ditamap.editTopic">
<macro>
<sequence>
<choice>
<get context="$selectedElement/@conref"
expression="resolve-uri(.)"/>
<get context="$selectedElement/@href"
expression="resolve-uri(.)" />
<get context="$selectedElement/@mapref"
expression="resolve-uri(.)"/>
</choice>
<choice>
<sequence>
<test expression="ends-with('%_', '???')" />
<command name="alert"
parameter="Please replace '???' by an actual URL." />
</sequence>
<choice>
<command name="XXE.edit" parameter="%_" />
<command name="XXE.new" parameter="- - '%_'" />
</choice>
</choice>
</sequence>
</macro>
</command>
---
2) Inside topics, you may want to use right-click menu's "Follow Link"
(or Select|Link|Select Link target --
http://www.xmlmind.com/xmleditor/_distrib/doc/help/selectMenu.html#linkMenu)
---
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support