Page 1 of 1

Pop-up window

Posted: Wed Jul 02, 2014 4:05 pm
by Pam
Is it possible to create an internal link (scope=local) that opens in a separate window as is the case for an external link (scope=external)?

Re: Pop-up window

Posted: Fri Jul 04, 2014 12:54 pm
by sorin_ristache
Hello,

You can change the internal links (scope="local") to open in a separate window by replacing this code:

Code: Select all

<xsl:template match="*" mode="add-link-target-attribute">
<xsl:if test="@scope='external' or @type='external' or ((@format='PDF' or @format='pdf') and not(@scope='local'))">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:if>
</xsl:template>
with this code:

Code: Select all

<xsl:template match="*" mode="add-link-target-attribute">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:template>
in the file:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.xhtml\xsl\xslhtml\rel-links.xsl


Regards,
Sorin

Re: Pop-up window

Posted: Tue Jul 08, 2014 4:37 pm
by Pam
Thanks for your response, but it didn't work.

Re: Pop-up window

Posted: Tue Jul 08, 2014 4:44 pm
by sorin_ristache
Hello,

What Oxygen version do you use? How is an internal link (scope=local) opened after you add the code? What is the HTML code for internal links in the HTML output pages?


Regards,
Sorin