Pop-up window

Questions about XML that are not covered by the other forums should go here.
Pam
Posts: 3
Joined: Wed Jul 02, 2014 3:49 pm

Pop-up window

Post 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)?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Pop-up window

Post 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
Pam
Posts: 3
Joined: Wed Jul 02, 2014 3:49 pm

Re: Pop-up window

Post by Pam »

Thanks for your response, but it didn't work.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Pop-up window

Post 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
Post Reply