Markup for link redirection

burbles
Posts: 37
Joined: Wed Dec 23, 2009 6:13 am

Markup for link redirection

Post by burbles » Mon Nov 04, 2013 1:58 pm

I'd like to know if there are standard elements and attributes in DITA 1.2 that will produce the following HTML coding, which is an auto-redirect:

Code: Select all

<meta http-equiv="refresh" content="0; URL=../gui/PDF-pagemaster.svg"/>
Or, can this only be achieved by customizing stylesheets?

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Markup for link redirection

Post by sorin_ristache » Mon Nov 04, 2013 2:05 pm

Hello,

There are no standard DITA elements or transformation parameters for HTML auto-redirection. You will have to customize the XSLT stylesheets that create the output HTML pages. Depending on your output you will have to customize the stylesheet:
  • for XHTML output:

    [Oxygen-install-dir]\frameworks\dita\DITA-OT\xsl\dita2xhtml.xsl
  • for Webhelp - the desktop version:

    [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\dita2webhelp.xsl
  • for Webhelp - the mobile version:

    [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\mobile\dita2webhelp.xsl

Regards,
Sorin

Post Reply