Changeset 13785


Ignore:
Timestamp:
2007-01-24T17:21:45+13:00 (17 years ago)
Author:
lh92
Message:

changed to display the navigation links

Location:
trunk/gsdl-documentation/manuals/processing
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl-documentation/manuals/processing/common.xsl

    r13632 r13785  
    189189  <xsl:template match="Section" mode="ref"><xsl:number count="//Chapter|//Chapter//Section" format="1.1" level="multiple"/></xsl:template>
    190190  <xsl:template match="Subsection" mode="ref"><xsl:number level="multiple" format="1.1.1" count="//Chapter|//Chapter//Section|//Chapter//Section//Subsection"/></xsl:template>
     191 
     192 
     193  <xsl:template match="SupplementaryText">
     194    <xsl:param name="manual_id" select="''"/>
     195    <xsl:param name="manual_lang" select="''"/>     
     196    <xsl:for-each select="Text">
     197        <div class="indexlink"><a class="indexlink">
     198        <xsl:if test="@id='manual_index'"><xsl:attribute name="href"><xsl:value-of select="$manual_id"/>_<xsl:value-of select="$manual_lang"/>_index.html</xsl:attribute></xsl:if>
     199        <xsl:if test="@id='top_index'"><xsl:attribute name="href">../../index.html</xsl:attribute></xsl:if>
     200        <xsl:value-of select="."/></a></div>
     201    </xsl:for-each>
     202  </xsl:template>
     203 
    191204</xsl:stylesheet>
  • trunk/gsdl-documentation/manuals/processing/style.css

    r13632 r13785  
    88p{ FONT-SIZE: 13px; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #000000}
    99
     10
     11
    1012table.figure_code{
    1113    padding-bottom:2pt; padding-left:2pt; padding-right:2pt; padding-top:2pt;   
     
    1315}
    1416
    15 div.linenumber{
    16     margin-top:0pt; margin-right:0in; margin-bottom:0in; margin-left:0pt; margin-bottom:0pt; font-family:Courier; FONT-SIZE: 8pt
    17 }
     17div.linenumber{margin-top:0pt; margin-right:0in; margin-bottom:0in; margin-left:0pt; margin-bottom:0pt; font-family:Courier; FONT-SIZE: 8pt}
     18div.comment{ margin-top: 0px; margin-bottom: 0px; margin-left: 20px;}
     19div.indexlink{ text-align: right;}
    1820
    1921li {FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #000000}
     
    2325dd {margin-top: 2pt; margin-bottom: 0pt; font-size: 12px}
    2426dt {margin-top: 1pt; margin-bottom: 0pt; font-size: 12px}
    25 a {font-size: 12px}
     27
     28a {font-size: 15px}
     29a.title {font-size: 18px; font-family:arial,sans-serif;}
     30a.comment {font-size: 11px; font-family:arial,sans-serif;}
    2631
    2732img{border: 0px}
  • trunk/gsdl-documentation/manuals/processing/xml-to-index.xsl

    r13649 r13785  
    66  exclude-result-prefixes="java">
    77 
    8   <xsl:variable name="mode">cd</xsl:variable>
    98  <xsl:output method="html"/>
    109  <xsl:include href="common.xsl"/>
     
    1312    <html>
    1413      <head><title><xsl:value-of select="Title/Text"/></title></head>
    15       <link rel="stylesheet" href="../style.css" type="text/css"/>
     14      <link rel="stylesheet" href="../../style.css" type="text/css"/>
    1615      <body>
    1716    <h2><xsl:apply-templates select="Heading/Text"/></h2>
     
    2019    <xsl:apply-templates select="Author"/>
    2120    <xsl:apply-templates select="Affiliation"/>
     21   
     22    <div class="indexlink"><a href="../../index.html"><xsl:value-of select="/Manual/SupplementaryText/Text[@id='top_index']"/></a></div>
     23   
    2224  <xsl:apply-templates select="Text"/>
    2325    <xsl:apply-templates select="Comment"/>
    24     <xsl:call-template name="version_and_date"/>        <br/>
     26    <xsl:call-template name="version_and_date"/>   
    2527
    2628    <xsl:apply-templates select="Section" mode="preface"/>
    27        
     29   
     30    <h3>Contents</h3>
    2831    <dl>
    2932      <xsl:apply-templates select="Chapter"/>
     
    3437
    3538  <xsl:template match="Chapter">
    36     <dt><a href="Chapter_{@id}.htm"><xsl:apply-templates select="Title/Text"/></a></dt>
    37     <dd><xsl:for-each select="Title">
    38             <xsl:apply-templates/><br/>
    39             </xsl:for-each>
    40     </dd>
     39    <dt><a href="Chapter_{@id}.htm"><xsl:apply-templates select="Title/Text"/></a></dt>   
     40    <xsl:for-each select="Content/Section"><dd><xsl:apply-templates select="Title/Text"/></dd></xsl:for-each>
    4141  </xsl:template>
    4242</xsl:stylesheet>
  • trunk/gsdl-documentation/manuals/processing/xml-to-many-html.xsl

    r13649 r13785  
    99  <xsl:include href="crossref-inter.xsl"/>
    1010
    11   <xsl:output method="html"/> 
     11  <xsl:output method="html"/>
    1212 
    13   <xsl:template match="Chapter|FootnoteList">   
     13  <xsl:template match="Chapter|FootnoteList">
    1414    <html>
    1515      <head>
    16     <title><xsl:apply-templates select="Title/Text"/></title>
    17     <link rel="stylesheet" href="../style.css" type="text/css"/>
     16            <title><xsl:apply-templates select="Title/Text"/></title>
     17            <link rel="stylesheet" href="../../style.css" type="text/css"/>
    1818      </head>
    1919      <body>
    2020        <table width="90%" border="0" align="center"><tr><td>
    21     <h2><xsl:value-of select="/Manual/Heading/Text"/>&#160;<xsl:value-of select="/Manual/Title/Text"/></h2>
    22     <a name="Chapter_{@id}"/><h1>
    23       <xsl:if test="not(starts-with(@id, 'appendix') or starts-with(@id, 'biblio'))">
    24       Chapter <xsl:number/>&#160;</xsl:if><xsl:apply-templates select="Title/Text"/></h1>
    25    
    26     <xsl:if test="Content/Section">
    27     <h3>Contents</h3>   
    28     <xsl:apply-templates select="Content/Section" mode="index"/>
    29     </xsl:if>
     21                <h2><xsl:value-of select="/Manual/Heading/Text"/>&#160;<xsl:value-of select="/Manual/Title/Text"/></h2>
     22                <a name="Chapter_{@id}"/><h1>
     23              <xsl:if test="not(starts-with(@id, 'appendix') or starts-with(@id, 'biblio'))">
     24              Chapter <xsl:number/>&#160;</xsl:if><xsl:apply-templates select="Title/Text"/></h1>   
     25             
     26            <xsl:apply-templates select="/Manual/SupplementaryText">
     27                <xsl:with-param name="manual_id" select="/Manual/@id"/>
     28                <xsl:with-param name="manual_lang" select="/Manual/@lang"/>
     29            </xsl:apply-templates>
     30           
     31                <xsl:if test="Content/Section">
     32                <h3>Contents</h3>
     33                <xsl:apply-templates select="Content/Section" mode="index"/>
     34                </xsl:if>
    3035
    3136    <xsl:apply-templates select="Content/*"/>   
  • trunk/gsdl-documentation/manuals/processing/xml-to-one-html.xsl

    r13649 r13785  
    1515      <head>
    1616      <title><xsl:value-of select="Title/Text"/></title>
    17       <link rel="stylesheet" href="../style.css" type="text/css"/>
     17      <link rel="stylesheet" href="../../style.css" type="text/css"/>
    1818      </head>
    1919    <body>
     
    2424            <xsl:apply-templates select="Author"/>
    2525            <xsl:apply-templates select="Affiliation"/>
     26           
     27            <div class="indexlink"><a href="../../index.html"><xsl:value-of select="/Manual/SupplementaryText/Text[@id='top_index']"/></a></div>
     28           
    2629            <xsl:apply-templates select="Text"/>
     30           
    2731            <xsl:apply-templates select="Comment"/>
    2832            <xsl:call-template name="version_and_date"/>       
Note: See TracChangeset for help on using the changeset viewer.