Hi,

for XHTML based outputs each topic produces usually one HTML page which
inherits it's filename from original DITA source file. This has one big
drawback -- there is no fixed filename like index.html which can be
always used to start browsing documentation.

I have solved this by doing simple customization below, but it would be
nice if similar feature will be default.

                                        Jirka

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:u="http://www.xmlmind.com/namespace/ditac";
  xmlns:ditac="http://www.xmlmind.com/ditac/schema/ditac";
  xmlns:Number="java:com.xmlmind.ditac.xslt.Number"
  exclude-result-prefixes="xs u ditac Number" version="2.0">

  <xsl:import href="ditac-xsl:webhelp/webhelp.xsl"/>

  <xsl:template match="/">
    <xsl:for-each select="$ditacLists/ditac:chunkList/ditac:chunk[1]">
      <xsl:result-document href="index.html">
        <html>
          <head>
            <title>Documentation is opening</title>
          </head>
          <body>
            <script>
              location.href = '<xsl:value-of select="@file"/>';
            </script>
          </body>
        </html>
      </xsl:result-document>
    </xsl:for-each>

    <xsl:apply-imports/>
  </xsl:template>

</xsl:stylesheet>


-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to