Pop-up window

Questions about XML that are not covered by the other forums should go here.
Pam
Posts: 2

Pop-up window

Wed Jul 02, 2014 4:05 pm

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: 4144

Re: Pop-up window

Fri Jul 04, 2014 12:54 pm

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: 2

Re: Pop-up window

Tue Jul 08, 2014 4:37 pm

Thanks for your response, but it didn't work.
sorin_ristache
Posts: 4144

Re: Pop-up window

Tue Jul 08, 2014 4:44 pm

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

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests