Pages: 1
Print
Author Topic: No charset specified in mutlipe html output for the toc file, such as index.html  (Read 2688 times)
mmoulder
Member

Posts: 43


« on: June 02, 2011, 04:45:38 PM »

I am using XMetaL 6.0 EE.
When I create a multiple html output and have the main toc file as index.html the following is added to the html file:

<head>
<base target="contentwin" />
   <title>

    MozyHome Guide d'utilisation Version 2.10
  </title>
</head>

However, in the other html files the following line is added:
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />

I need this line inserted on the toc file as well. Any ideas on how to do this? Not sure why the main toc page leaves it off, but the other html files add this. I need this added because I am getting odd characters in the toc file because there is no charset specified.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: June 02, 2011, 06:55:55 PM »

You would need to modify this file to include anything additional:

<DITA OT>\xsl\map2htmtoc.xsl

See the section that starts with this comment:
  <!-- *********************************************************************************
     Setup the HTML wrapper for the table of contents
     ********************************************************************************* -->
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #2 on: June 02, 2011, 07:01:06 PM »

There is an existing template here that you might call, or reuse:
<DITA OT>\xsl\xslhtml\dita2htmlImpl.xsl


  <xsl:template name="generateCharset">
    <!-- [NG] -->
    <meta http-equiv="Content-Type" content="text/html; charset={$CHARSET}"/>
    <xsl:value-of select="$newline"/>
    <!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><xsl:value-of select="$newline"/> -->
  </xsl:template>
Logged
Pages: 1
Print
Jump to:  

email us