Showing:

Documentation
Used by
References
Imported modules
Source
Main stylesheet map2xhtmall.xsl
Imported modules
Template /map
Documentation

Description

 Match the MAP document. Copy it to the output
    to allow cascade processing of the MAP TOC, but
    also generate the X/HTML for the referred topics.
Namespace No namespace
Match /map
Mode #default
References
Template processTopicrefs
Import precedence 17
Source
<xsl:template match="/map">
  <!-- Copy -->
  <xsl:apply-templates mode="oxy_copy" select="."/>
  <!-- Process the references -->
  <xsl:call-template name="processTopicrefs"/>
</xsl:template>
Template *|text()|@*|processing-instruction()|comment()oxy_copy
Documentation

Description

 Deep copy template 
Namespace No namespace
Match *|text()|@*|processing-instruction()|comment()
Mode oxy_copy
Import precedence 17
Source
<xsl:template match="*|text()|@*|processing-instruction()|comment()" mode="oxy_copy">
  <xsl:copy>
    <!-- TODO - comment is not copied. -->
    <xsl:apply-templates mode="oxy_copy" select="@*"/>
    <xsl:apply-templates mode="oxy_copy"/>
  </xsl:copy>
</xsl:template>
Template processTopicrefs
Documentation

Description

**************************************************
        For each topic reference, generates the HTML page.    
        ************************************************** 
Namespace No namespace
Used by
Template /map
References
Parameter WORKDIR
Import precedence 17
Source
<xsl:template name="processTopicrefs">
  <xsl:for-each select="//*[contains(@class, ' map/topicref ')][not(@toc='no')]">
    <!-- The name of the output file. -->
    <xsl:variable name="outputName" select="concat(substring-before(@href,'.xml'),'.html')"/>
    <!-- The full path of the output file. -->
    <xsl:variable name="outputPath" select="concat(concat($WORKDIR,'/'),$outputName)"/>
    <saxon:output href="{$outputPath}">
      <xsl:apply-templates select="document(@href,/)"/>
    </saxon:output>
  </xsl:for-each>
</xsl:template>
Output (default)
Namespace No namespace
Output properties
method encoding indent doctype-public doctype-system
xml no -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
Source
<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>