WebHelp ditamap external scope link
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 18
- Joined: Thu Aug 27, 2009 5:09 pm
WebHelp ditamap external scope link
Post by scotmarvin »
I'm using some links in the TOC that are external to the DITA project. I was hoping that the ditamap would treat these links as dita files do: open in a new window. However, even thought the links have attributes scope=external and format=html, the links are generated in the WebHelp content pane, not in a new window.
Here's the code in question:
Any ideas?
Here's the code in question:
Code: Select all
<topicref navtitle="Documentation Archive"
href="https://www.eucalyptus.com/eucalyptus-cloud/documentation/archive" scope="external"
format="html">
<topicref href="https://www.eucalyptus.com/docs/eucalyptus/4.0/index.html" scope="external"
format="html" navtitle="4.0.0"/>
<topicref href="https://www.eucalyptus.com/docs/eucalyptus/3.4/index.html" scope="external"
format="html" navtitle="3.4.3"/>
<topicref href="https://www.eucalyptus.com/eucalyptus-cloud/documentation/eucalyptus/3.3"
scope="external" format="html" navtitle="3.3.2"/>
<topicref href="https://www.eucalyptus.com/eucalyptus-cloud/documentation/eucalyptus/3.2"
scope="external" format="html" navtitle="3.2.2"/>
<topicref href="https://www.eucalyptus.com/eucalyptus-cloud/documentation/eucalyptus/3.1"
scope="external" format="html" navtitle="3.1.2"/>
<topicref href="https://www.eucalyptus.com/eucalyptus-cloud/documentation/eucalyptus/3.0"
scope="external" format="html" navtitle="3.0.2"/>
</topicref>
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: WebHelp ditamap external scope link
Hi Scot,
I consider this a bug in Oxygen.
We will rectify this in the next Oxygen version (16.1).
In the meantime as a workaround, you can open the XSL:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/xsl/dita/tocDita.xsl
search for the code:
and after it add:
Then in the XSL:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\createMainFiles.xsl
search for the code:
and add inside it:
so that it becomes something like:
Regards,
Radu
I consider this a bug in Oxygen.
We will rectify this in the next Oxygen version (16.1).
In the meantime as a workaround, you can open the XSL:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/xsl/dita/tocDita.xsl
search for the code:
Code: Select all
<xsl:if test="@outputclass">
<xsl:attribute name="outputclass" select="@outputclass"/>
</xsl:if>
Code: Select all
<xsl:if test="@scope and not(@scope='local')">
<xsl:attribute name="scope" select="@scope"/>
</xsl:if>
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\createMainFiles.xsl
search for the code:
Code: Select all
<a href="{@href}">
Code: Select all
<xsl:if test="@scope='external' or @scope='peer'">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:if>
Code: Select all
<a href="{@href}">
<xsl:if test="@scope='external' or @scope='peer'">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:if>
<xsl:value-of select="$title"/>
</a>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 18
- Joined: Thu Aug 27, 2009 5:09 pm
Re: WebHelp ditamap external scope link
Post by scotmarvin »
Thanks, Radu. That definitely generates the target="_blank". Unfortunately, the link still opens in the webhelp content pane. It's weird because the code to open the link in a new window gets generated.
I'm just going to create a link to a dita topic and put the links in there.
I'm just going to create a link to a dita topic and put the links in there.
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: WebHelp ditamap external scope link
Hi Scot,
We found out one more modification needs to be made in one of the Javascript files used for WebHelp output.
If you are still interested to test this just drop us an email to support@oxygenxml.com.
Regards,
Radu
We found out one more modification needs to be made in one of the Javascript files used for WebHelp output.
If you are still interested to test this just drop us an email to support@oxygenxml.com.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: WebHelp ditamap external scope link
Hello,
There is no setting that would enable such a behavior. I have registered your request in our issue tracking tool.
A workaround is to contribute a custom JavaScript code that removes the target="_blank" attributes from the external links elements.
However this is a partial fix, as the links would be opened in the same window, replacing the entire window content.
Regards,
Alin
There is no setting that would enable such a behavior. I have registered your request in our issue tracking tool.
A workaround is to contribute a custom JavaScript code that removes the target="_blank" attributes from the external links elements.
However this is a partial fix, as the links would be opened in the same window, replacing the entire window content.
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service