Xref and javascript::executeCommand (Eclipse Active Help) in Dita 1.8.4

11 views
Skip to first unread message

RupTho

unread,
Aug 12, 2014, 8:11:03 AM8/12/14
to dita-o...@googlegroups.com
Hello,

I have a question about the possibility of calling javascript in the href attribute of a <xref>-tag in java 1.8.4.

In Dita 1.7.5 the following Dita-code

<xref format="js" href="javascript:executeCommand(&quot;mycommand.Open(filePath=Parameter/Value&quot;)" scope="peer">My Link Text</xref>

is making no problems while processing it to eclipsehelp and/or xhtml.

Version 1.8.4 however throws an [DOTJ054E][ERROR] which tells me that the href is referencing to an incorrect URL (which appears because it is expecting me to only enter a relative/absolute internal or external filepath). This seems to happen because of the feature "Link processing" as described in [1]. Although the displayed Error Messages, the output documents are produced just fine.

Is there a recommended approach to fix these errors (or rather to implement an recommended approach to Active Help), or should I simply ignore these error messages? I found a blog post about it at [2], but it seems as it is quite outdated and does not help me with my problem at all.

[1] https://dita-ot.github.io/1.8/dev_ref/DITA1.2-implementation-dependent-features.html
[2] https://wiki.oasis-open.org/dita/Active_Content_in_DITA_Help


Thank you in advance!


Reply all
Reply to author
Forward
0 new messages