Changeset 11594


Ignore:
Timestamp:
2006-04-06T14:12:52+12:00 (18 years ago)
Author:
kjdon
Message:

modified for the new XML format that works with the translator

Location:
trunk/gli/help
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/help/gen-index-xml.xsl

    r6941 r11594  
    1616      <xsl:for-each select="Title">
    1717        <Title>
    18           <xsl:apply-templates/>
     18          <xsl:apply-templates select="Text"/>
    1919        </Title>
    2020      </xsl:for-each>
  • trunk/gli/help/gen-many-html.xsl

    r11092 r11594  
    33
    44  <xsl:output method="html" encoding="UTF-8"/>
    5 
    6   <xsl:template match="Break">
    7     <p/>
    8   </xsl:template>
    95
    106  <xsl:template match="Document">
     
    1814
    1915  <xsl:template match="Reference">
    20     <a href="{@target}.htm#{@target}"><xsl:apply-templates/></a>
     16    <xsl:variable name="target" select="@target"/>
     17    <a href="{@target}.htm"><xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/></a>
    2118  </xsl:template>
    2219
     
    2724  <xsl:template match="Title"/>
    2825
     26  <xsl:template match="Text">
     27    <p><xsl:apply-templates/></p>
     28  </xsl:template>
    2929
    3030  <xsl:template name="processSection">
     
    7373    <font face="Verdana" size="5">
    7474      <strong>
    75         <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/>
     75        <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle/Text)"/>
    7676      </strong>
    7777    </font>
  • trunk/gli/help/gen-one-html-for-doc.xsl

    r11092 r11594  
    33
    44  <xsl:output method="html" encoding="UTF-8"/>
    5 
    6   <xsl:template match="Break">
    7     <p/>
    8   </xsl:template>
    95
    106  <xsl:template match="Document">
     
    2723
    2824  <xsl:template match="Reference">
    29     <xsl:apply-templates/>
     25    <xsl:variable name="target" select="@target"/>
     26    <xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/>
    3027  </xsl:template>
    3128
     
    6158    <xsl:choose>
    6259      <xsl:when test="contains($sectionNumber, '.')">
    63         <h4><xsl:value-of select="$sectionTitle"/></h4>
     60        <h4><xsl:value-of select="$sectionTitle/Text"/></h4>
    6461      </xsl:when>
    6562      <xsl:otherwise>
    66         <h3><xsl:value-of select="$sectionTitle"/></h3>
     63        <h3><xsl:value-of select="$sectionTitle/Text"/></h3>
    6764      </xsl:otherwise>
    6865    </xsl:choose>
    6966  </xsl:template>
    7067
     68  <xsl:template match="Text">
     69    <p><xsl:apply-templates/></p>
     70  </xsl:template>
     71
    7172</xsl:stylesheet>
  • trunk/gli/help/gen-one-html.xsl

    r11092 r11594  
    33
    44  <xsl:output method="html" encoding="UTF-8"/>
    5 
    6   <xsl:template match="Break">
    7     <p/>
    8   </xsl:template>
    95
    106  <xsl:template match="Document">
     
    2420
    2521  <xsl:template match="Reference">
    26     <a href="#{@target}"><xsl:apply-templates/></a>
     22    <xsl:variable name="target" select="@target"/>
     23    <a href="#{@target}"><xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/></a>
    2724  </xsl:template>
    2825
     
    6057    <xsl:choose>
    6158      <xsl:when test="contains($sectionNumber, '.')">
    62         <h3>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h3>
     59        <h3>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle/Text)"/></h3>
    6360      </xsl:when>
    6461      <xsl:otherwise>
    65         <h1>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h1>
     62        <h1>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle/Text)"/></h1>
    6663      </xsl:otherwise>
    6764    </xsl:choose>
    6865  </xsl:template>
    6966
     67  <xsl:template match="Text">
     68    <p><xsl:apply-templates/></p>
     69  </xsl:template>
     70
    7071</xsl:stylesheet>
  • trunk/gli/help/gen-one-tex.xsl

    r11092 r11594  
    33
    44  <xsl:output method="text" encoding="iso-8859-1"/>
    5 
    6   <xsl:template match="Break">
    7     <p/>
    8   </xsl:template>
    95
    106  <xsl:template match="Document-old">
     
    2521    </html>
    2622  </xsl:template>
     23
    2724  <xsl:template match="Document">
    2825    % START OF AUTO-GENERATED GLI USER GUIDE
     
    3835
    3936  <xsl:template match="Reference">
    40     <xsl:apply-templates/>
     37    <xsl:variable name="target" select="@target"/>
     38    <xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/>
    4139  </xsl:template>
    4240
     
    7371      <xsl:when test="contains($sectionNumber, '.')">
    7472        <!--<h4><xsl:value-of select="$sectionTitle"/></h4>-->
    75 \paragraph{\emph{<xsl:value-of select="$sectionTitle"/>}}<xsl:text>
     73\paragraph{\emph{<xsl:value-of select="$sectionTitle/Text"/>}}<xsl:text>
    7674    </xsl:text>
    7775      </xsl:when>
    7876      <xsl:otherwise>
    7977        <!--<h3><xsl:value-of select="$sectionTitle"/></h3>-->
    80 \subsubsection{<xsl:value-of select="$sectionTitle"/>}<xsl:text>
     78\subsubsection{<xsl:value-of select="$sectionTitle/Text"/>}<xsl:text>
    8179    </xsl:text>
    8280      </xsl:otherwise>
     
    8482  </xsl:template>
    8583
     84  <xsl:template match="Text">
     85    <xsl:apply-templates/><xsl:text>
     86</xsl:text>
     87  </xsl:template>
     88
    8689</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.