Markup for link redirection

burbles
Posts: 37

Markup for link redirection

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

Re: Markup for link redirection

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest