Martin Polley wrote:
>
> Here's another item for the user wish list
> <http://www.xmlmind.com/xmleditor/wish_list.html>:
>
> Currently, if you have a topicref in a ditamap with an href to a topic
> file that does not exist, if you try to edit the reference topic from
> the map (F2 e), you get an error.
>
> It would be much more useful if XXE gave you the option to create a stub
> topic file in this situation, instead of just an error. Even better
> would be an option to create stub files for ALL the topicrefs in the map
> that do not point to actual files (like IBM's Task Modeler does).
>
> There are lots of people who create their maps first and then create the
> topics afterwards...
Normally the answer to this kind of request (adapting XXE to the way
some users prefer to work) is: you can do that yourself if you really
want to.
This could be done by modifying the following macro (excerpts of
dita_map_common.incl):
---
<binding>
<keyPressed code="F2" />
<charTyped char="e" />
<command name="ditamap.editTopic" />
</binding>
<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>
<command name="XXE.edit" parameter="%_" />
</sequence>
</macro>
</command>
---
However, in your case, you *cannot* easily implement this feature
yourself because XXE lacks the facilities to do it. Therefore, I've
added your RFE to the wish list.
Thank you for this feedback.