Changeset 13861


Ignore:
Timestamp:
2007-02-07T13:29:17+13:00 (17 years ago)
Author:
lh92
Message:

updated XSLs

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

Legend:

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

    r13785 r13861  
    66 
    77  <xsl:template match="Title"><p><b><i><xsl:apply-templates/></i></b></p></xsl:template>
     8 
    89 
    910  <xsl:template match="Title" mode="Figure">
     
    1516  </xsl:template>
    1617 
     18 
    1719  <xsl:template match="Title" mode="Table">       
    1820    <div style="margin-right:1.7pt;" align="center">
    1921    <b>Table&#160;<xsl:number count="Table[not(@class='hidden')]" level="any"/>&#160;<xsl:apply-templates/></b></div>
    2022  </xsl:template>
     23 
    2124
    2225    <xsl:template match="NumberedList"><ol><xsl:apply-templates/></ol></xsl:template>
    2326  <xsl:template match="NumberedItem"><li><xsl:apply-templates/></li></xsl:template>
    2427
     28
    2529  <xsl:template match="BulletList">
    2630    <xsl:if test="not(parent::Bullet)">
    27     <ul style="list-style-type: disc;">
    28       <xsl:for-each select="Bullet">
    29         <li><xsl:apply-templates/></li>
     31    <ul style="list-style-type: disc;"><xsl:for-each select="Bullet"><li><xsl:apply-templates/></li>
    3032        <xsl:if test="BulletList">
    31         <xsl:for-each select="BulletList">
    32           <ul style="list-style-type: disc;"><xsl:for-each select="Bullet"><li><xsl:apply-templates/></li></xsl:for-each></ul>
    33         </xsl:for-each>
    34         </xsl:if>
    35       </xsl:for-each>
    36     </ul>
    37     <p/>
    38     </xsl:if>
     33        <xsl:for-each select="BulletList"><ul style="list-style-type: disc;"><xsl:for-each select="Bullet"><li><xsl:apply-templates/></li></xsl:for-each></ul>
     34        </xsl:for-each></xsl:if></xsl:for-each></ul><p/></xsl:if>
    3935  </xsl:template>
     36
    4037
    4138  <xsl:template match="Text">
    4239    <xsl:choose>
    43         <xsl:when test="parent::Indented">
    44           <p style="font-size=12px; color=black; text-align=justify; margin-left=15pt;"><xsl:apply-templates/></p>
    45         </xsl:when>
     40        <xsl:when test="parent::Indented"><p class="indented"><xsl:apply-templates/></p>    </xsl:when>
    4641        <xsl:when test="parent::Title|parent::Footnote"><xsl:apply-templates/></xsl:when>
    47         <xsl:when test="not(parent::Version) and not(parent::Date) and not(parent::NumberedItem) and not(parent::Bullet)">
    48             <p><xsl:apply-templates/></p>
    49         </xsl:when>
     42        <xsl:when test="not(parent::Version) and not(parent::Date) and not(parent::NumberedItem) and not(parent::Bullet)"><p><xsl:apply-templates/></p></xsl:when>
    5043        <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
    5144    </xsl:choose>   
    5245  </xsl:template>
    5346
     47
    5448  <xsl:template match="CodeLine"> 
    5549  <xsl:choose>
    56     <xsl:when test="parent::Figure or parent::th">
    57       <div style="margin-top:0pt; margin-right:0in; margin-bottom:0in; margin-left:2pt; margin-bottom:0pt;
    58     font-family: Courier; font-size: 11px"><xsl:apply-templates/></div>
    59     </xsl:when>     
    60     <xsl:when test="name(preceding-sibling::*[position()=1])='CodeLine' or name(following-sibling::*[position()=1])='CodeLine'">
    61      
    62         <div style="margin-top:0pt; margin-right:0pt; margin-bottom:0pt; margin-left:2em; font-size:10px; font-family:Courier;"><xsl:apply-templates/></div>
    63      
    64     </xsl:when>     
     50  <!-- codeline in figure or table -->
     51    <xsl:when test="parent::Figure or parent::th"><div class="codeline_figure"><xsl:apply-templates/></div></xsl:when>     
     52    <!-- consecutive codelines -->
     53    <xsl:when test="name(preceding-sibling::*[position()=1])='CodeLine' or name(following-sibling::*[position()=1])='CodeLine'"><div class="codeline"><xsl:apply-templates/></div></xsl:when>     
    6554    <!-- a single line of code between two text paragraphs -->
    66     <xsl:otherwise>
    67       <p><div style="font-size:10px; margin-right:0pt; margin-left:2em; margin-bottom:2px; margin-top:2px; font-family:Courier;">
    68     <xsl:apply-templates/></div></p>     
    69   </xsl:otherwise>
     55    <xsl:otherwise><div class="codeline_single"><xsl:apply-templates/></div></xsl:otherwise>
    7056  </xsl:choose> 
    7157  </xsl:template>
     58 
    7259
    7360  <xsl:template match="Figure">
     
    7865            <xsl:number count="Figure[Title/SubTitle and substring(translate(@id, '_0123456789', '99999999999'), string-length(@id)-1, string-length(@id))='99']" level="any"/>
    7966    </xsl:variable>         
    80     <xsl:variable name="no"><xsl:value-of select="$temp_total_figs - $temp_num_of_sub_figs"/></xsl:variable>   
     67    <xsl:variable name="no"><xsl:value-of select="$temp_total_figs - $temp_num_of_sub_figs"/></xsl:variable>
     68       
    8169    <p/>       
    8270    <xsl:apply-templates select="Title" mode="Figure"><xsl:with-param name="no" select="$no"/></xsl:apply-templates>
     
    8775        <tr>
    8876        <xsl:if test="parent::Figure[@class='withLineNumber']">
    89         <td><div style="linenumber"><xsl:number value="position()" format="1"/>&#160;&#160;</div></td></xsl:if>
     77        <td><div class="linenumber"><xsl:number value="position()" format="1"/>&#160;&#160;</div></td></xsl:if>
    9078        <td><xsl:apply-templates select="."/></td></tr>
    9179      </xsl:for-each>
     
    9886  </xsl:template>
    9987
     88
    10089  <xsl:template match="Table">
    101     <p/>
    102     <a id="Table_{@id}"/>
     90    <p/><a id="Table_{@id}"/>
    10391    <xsl:if test="not(@class='hidden') and not(normalize-space(Title/Text)='')"><xsl:apply-templates select="Title" mode="Table"/></xsl:if>
    10492    <table cellpadding="2pt" cellspacing="2pt">
    105         <xsl:if test="not(@class='hidden')">
     93    <xsl:if test="not(@class='hidden')">
    10694      <xsl:if test="not(../../@class='hidden')"><xsl:attribute name="style">border-collapse:collapse;border:1px solid black;</xsl:attribute></xsl:if>
    10795      <xsl:attribute name="rules">rows</xsl:attribute><xsl:attribute name="align">center</xsl:attribute>       
    10896    </xsl:if>
    10997    <xsl:if test="@class='hidden'"><xsl:attribute name="width">90%</xsl:attribute><xsl:attribute name="align">center</xsl:attribute></xsl:if>
    110         <xsl:for-each select="TableContent/tr">
    111           <tr>
     98    <xsl:for-each select="TableContent/tr">
     99    <tr>
    112100      <xsl:if test="not(../../@class='hidden')"><xsl:attribute name="style">border-collapse:collapse;border:1px solid black;</xsl:attribute></xsl:if>
    113           <xsl:for-each select="th"><td valign="top"><xsl:if test="File"><xsl:attribute name="align">right</xsl:attribute></xsl:if>
    114           <xsl:apply-templates select="node()"/></td></xsl:for-each>
     101    <xsl:for-each select="th"><td valign="top"><xsl:if test="File"><xsl:attribute name="align">right</xsl:attribute></xsl:if>
     102    <xsl:apply-templates select="node()"/></td></xsl:for-each>
    115103      </tr>
    116     </xsl:for-each>
     104    </xsl:for-each>
    117105    </table>
    118106    <br/>
    119107  </xsl:template>
    120108   
     109
    121110  <xsl:template match="Section">     
    122     <a name="Section_{@id}"/>
    123     <h3><xsl:if test="not(starts-with(../../@id, 'appendix'))">
     111    <a name="Section_{@id}"/><h3><xsl:if test="not(starts-with(../../@id, 'appendix'))">
    124112    <xsl:number level="multiple" format="1.1" count="//Chapter|//Chapter//Section"/>&#160;</xsl:if>
    125     <xsl:apply-templates select="Title/Text"/></h3>
    126     <xsl:apply-templates select="Content/*"/>
     113    <xsl:apply-templates select="Title/Text"/></h3><xsl:apply-templates select="Content/*"/>
    127114  </xsl:template>
     115
    128116
    129117  <xsl:template match="Section" mode="preface">   
     
    131119    <xsl:apply-templates select="Content/*"/>
    132120  </xsl:template>
     121
    133122
    134123  <xsl:template match="Subsection">
     
    138127  </xsl:template>
    139128 
     129 
    140130  <xsl:template match="Part"><a id="Part_{@id}"/><xsl:apply-templates/></xsl:template>   
    141 
    142131  <xsl:template match="Comment"><xsl:apply-templates/></xsl:template> 
    143132  <xsl:template match="Indented"><p><div style="margin-left: 1em;"><xsl:apply-templates/></div></p></xsl:template>
     
    146135  </xsl:template>
    147136  <xsl:template match="i|b|u"><xsl:element name="{name()}"><xsl:apply-templates/></xsl:element></xsl:template> 
    148   <xsl:template match="File"><a href="{@url}" target="_blank"><img src="../{@url}" width="{@width}" height="{@height}" border="0"/></a></xsl:template>
    149  
    150  
    151  
    152   <xsl:template match="text()"><xsl:value-of select="."/></xsl:template>
    153  
     137  <xsl:template match="File"><a href="../{@url}" target="_blank"><img src="../{@url}" width="{@width}" height="{@height}" border="0"/></a></xsl:template>
     138  <xsl:template match="text()"><xsl:value-of select="."/></xsl:template> 
    154139  <xsl:template match="Author"><b><xsl:apply-templates/></b></xsl:template>
    155140  <xsl:template match="Affiliation"><i><xsl:apply-templates/></i></xsl:template>
    156   <xsl:template name="version_and_date"><p><b><xsl:apply-templates select="Version/Text"/></b>&#160;&#160;<xsl:apply-templates select="Date/Text"/></p></xsl:template>
     141  <xsl:template name="version_and_date"><p><b><xsl:apply-templates select="Version/Text"/></b>&#160;&#160;<xsl:apply-templates select="Date/Text"/></p></xsl:template> 
     142 
    157143 
    158144  <xsl:template match="Chapter|Appendix|Bibliography" mode="index">
     
    161147</xsl:template>
    162148
     149
    163150  <xsl:template match="Section" mode="index">
    164151  <dt><a href="#Section_{@id}"><xsl:apply-templates select="Title/Text"/></a></dt> 
    165152  </xsl:template>
     153
    166154
    167155<xsl:template match="Chapter">
     
    171159  <xsl:apply-templates select="Content/*"/>
    172160</xsl:template>
    173 
    174161 
    175162
     
    185172    <xsl:value-of select="concat($no, $subtitle)"/>
    186173  </xsl:template> 
    187   <xsl:template match="Table" mode="ref"><xsl:number level="any"/></xsl:template>
     174  <xsl:template match="Table" mode="ref"><xsl:number count="Table[not(@class='hidden')]" level="any"/></xsl:template>
    188175  <xsl:template match="Chapter" mode="ref"><xsl:number level="any"/></xsl:template>
    189176  <xsl:template match="Section" mode="ref"><xsl:number count="//Chapter|//Chapter//Section" format="1.1" level="multiple"/></xsl:template>
     
    191178 
    192179 
    193   <xsl:template match="SupplementaryText">
     180<xsl:template match="SupplementaryText">
    194181    <xsl:param name="manual_id" select="''"/>
    195182    <xsl:param name="manual_lang" select="''"/>     
     
    201188    </xsl:for-each>
    202189  </xsl:template>
    203  
    204190</xsl:stylesheet>
  • trunk/gsdl-documentation/manuals/processing/crossref-pdf.xsl

    r13632 r13861  
    2222  </xsl:template>
    2323 
    24   <xsl:template match="FootnoteList"> 
     24  <!--<xsl:template match="FootnoteList"> 
    2525  <xsl:for-each select="Footnote">
    2626    <a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="@id"/>]</a>
     
    2929  </xsl:for-each>
    3030  </xsl:template>
    31   <xsl:template match="FootnoteRef"><a name="fnref{@id}"/><a href="#fn{@id}">[<xsl:value-of select="@id"/>]</a></xsl:template>
     31  <xsl:template match="FootnoteRef"><a name="fnref{@id}"/><a href="#fn{@id}">[<xsl:value-of select="@id"/>]</a></xsl:template>-->
    3232 
    3333  <xsl:template match="Figure" mode="ref">
     
    4343  </xsl:template> 
    4444 
    45   <xsl:template match="Table" mode="ref"><xsl:number level="any"/></xsl:template>
     45  <xsl:template match="Table" mode="ref"><xsl:number level="any" count="Table[not(@class='hidden')]"/></xsl:template>
    4646 
    4747  <xsl:template match="Chapter" mode="ref"><xsl:number level="any"/></xsl:template>
  • trunk/gsdl-documentation/manuals/processing/crossref.xsl

    r13632 r13861  
    2626  <xsl:template match="FootnoteList"> 
    2727  <xsl:for-each select="Footnote">
    28     <a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="@id"/>]</a>
    29     <xsl:apply-templates/>
    30     <br/>
     28    <p><a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="@id"/>]</a>
     29    <xsl:apply-templates/></p>
    3130  </xsl:for-each>
    3231  </xsl:template>
  • trunk/gsdl-documentation/manuals/processing/fo-common.xsl

    r13632 r13861  
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    33
    4 <xsl:variable name="font" select="Cyrillic"/>
     4<xsl:variable name="font">
     5<xsl:choose>
     6<xsl:when test="//Manual[@lang='ru']">Cyrillic</xsl:when>
     7<xsl:otherwise>Helvetica</xsl:otherwise>
     8</xsl:choose>
     9</xsl:variable>
     10
     11<xsl:attribute-set name="manual-title-style">
     12  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     13  <xsl:attribute name="font-size">24.0pt</xsl:attribute>
     14  <xsl:attribute name="line-height">24pt</xsl:attribute>
     15  <xsl:attribute name="space-after.optimum">25pt</xsl:attribute>
     16  <xsl:attribute name="text-align">right</xsl:attribute>
     17  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     18</xsl:attribute-set>
     19
     20<xsl:attribute-set name="chapter-title-number">
     21  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     22  <xsl:attribute name="font-size">24.0pt</xsl:attribute>
     23  <xsl:attribute name="line-height">24pt</xsl:attribute>
     24  <xsl:attribute name="text-align">right</xsl:attribute>
     25  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     26</xsl:attribute-set>
     27
     28<xsl:attribute-set name="chapter-title-text">
     29  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     30  <xsl:attribute name="font-size">24.0pt</xsl:attribute>
     31  <xsl:attribute name="line-height">24pt</xsl:attribute> 
     32  <xsl:attribute name="text-align">right</xsl:attribute>
     33  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     34  <xsl:attribute name="text-indent">3cm</xsl:attribute>
     35  <xsl:attribute name="keep-with-next">always</xsl:attribute>
     36</xsl:attribute-set>
     37
     38<xsl:attribute-set name="table-title-style">
     39  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     40  <xsl:attribute name="font-size">10.0pt</xsl:attribute>
     41  <xsl:attribute name="font-weight">bold</xsl:attribute>
     42  <xsl:attribute name="line-height">15pt</xsl:attribute>
     43  <xsl:attribute name="background-color">grey</xsl:attribute>
     44  <xsl:attribute name="margin-left">25pt</xsl:attribute>
     45  <xsl:attribute name="space-after">3pt</xsl:attribute>
     46  <xsl:attribute name="space-before.optimum">10pt</xsl:attribute>
     47</xsl:attribute-set>
     48
     49<xsl:attribute-set name="section-title-style">
     50  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     51  <xsl:attribute name="font-size">12.0pt</xsl:attribute>
     52  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     53  <xsl:attribute name="font-weight">bold</xsl:attribute>
     54  <xsl:attribute name="text-align">left</xsl:attribute>
     55  <xsl:attribute name="space-before.optimum">25pt</xsl:attribute>
     56</xsl:attribute-set>
     57
     58<xsl:attribute-set name="subsection-title-style">
     59  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     60  <xsl:attribute name="font-size">10.0pt</xsl:attribute>
     61  <xsl:attribute name="font-weight">bold</xsl:attribute>
     62  <xsl:attribute name="text-align">left</xsl:attribute>
     63</xsl:attribute-set>
     64
     65<xsl:attribute-set name="codeline-in-table-style">
     66  <xsl:attribute name="font-family">Courier</xsl:attribute>
     67  <xsl:attribute name="font-size">8pt</xsl:attribute>
     68  <xsl:attribute name="space-before.optimum">3pt</xsl:attribute>
     69  <xsl:attribute name="text-align">right</xsl:attribute>
     70</xsl:attribute-set>
     71
     72
     73
     74
    575
    676<!-- display title in different formats -->
     
    878<xsl:choose>
    979<!-- manual title -->
    10 <xsl:when test="parent::Manual">
    11   <fo:block font-size="24.0pt" line-height="24pt" space-after.optimum="25pt" text-align="right" padding-top="3pt"><xsl:apply-templates/></fo:block>
    12 </xsl:when>
    13 
     80<xsl:when test="parent::Manual"><fo:block xsl:use-attribute-sets="manual-title-style"><xsl:apply-templates/></fo:block></xsl:when>
    1481<!-- chapter title -->
    15 <xsl:when test="parent::Chapter">
    16 <fo:block font-size="24.0pt" line-height="24pt" text-align="right" padding-top="3pt" id="Chapter_{../@id}">
    17 <xsl:if test="not(starts-with(@id, 'appendix')) and not(starts-with(@id, 'biblio'))"><xsl:number count="Chapter" format="1"/></xsl:if>
    18 </fo:block>
    19 <fo:block font-size="24.0pt" line-height="24pt" space-before.optimum="25pt" text-align="right" padding-top="3pt" text-indent="3cm"><xsl:apply-templates/></fo:block>
    20 </xsl:when>
    21 
     82<xsl:when test="parent::Chapter"><fo:block xsl:use-attribute-sets="chapter-title-number" id="Chapter_{../@id}"><xsl:if test="not(starts-with(@id, 'appendix')) and not(starts-with(@id, 'biblio'))"><xsl:number count="Chapter" format="1"/></xsl:if></fo:block>
     83<fo:block xsl:use-attribute-sets="chapter-title-text"><xsl:apply-templates/></fo:block></xsl:when>
    2284<!-- sections' title, with section number -->
    23 <xsl:when test="parent::Section and not(../Manual)">
    24 <fo:block font-size="12.0pt" text-align="left" padding-top="3pt" space-before.optimum="25pt" id="Section_{../@id}">
    25 <xsl:if test="not(starts-with(../../../@id, 'appendix'))"><xsl:number level="multiple" count="Chapter|Chapter/Content/Section" format="1.1"/>&#160;&#160;</xsl:if>
    26 <xsl:apply-templates select="Text"/>
    27 </fo:block>
    28 </xsl:when>
    29 
     85<!--<xsl:when test="parent::Section and not(../Manual)"><fo:block xsl:use-attribute-sets="section-title-style" id="Section_{../@id}"><xsl:if test="not(starts-with(../../../@id, 'appendix'))"><xsl:number level="multiple" count="Chapter|Chapter/Content/Section" format="1.1"/>&#160;&#160;</xsl:if><xsl:apply-templates select="Text"/></fo:block></xsl:when>-->
     86<xsl:when test="parent::Section"><fo:block xsl:use-attribute-sets="section-title-style" id="Section_{../@id}"><xsl:if test="not(starts-with(../../../@id, 'appendix')) and not(../Manual)"><xsl:number level="multiple" count="Chapter|Chapter/Content/Section" format="1.1"/>&#160;&#160;</xsl:if><xsl:apply-templates select="Text"/></fo:block></xsl:when>
    3087<!-- tables(not hidden) title, in grey background and with unique number -->
    31 <xsl:when test="parent::Table">
    32 <fo:block id="Table_{../@id}" font-size="10.0pt" font-weight="bold" line-height="15pt" background-color="grey" margin-left="25pt" space-before="10pt" space-after="3pt">
    33 Table&#160;<xsl:number level="any" count="Table[not(@class='hidden')]"/>&#160;&#160;<xsl:apply-templates select="Text"/><xsl:value-of select="SubTitle"/>
    34 </fo:block>
    35 </xsl:when>
    36 
     88<xsl:when test="parent::Table"><fo:block id="Table_{../@id}" xsl:use-attribute-sets="table-title-style">Table&#160;<xsl:number level="any" count="Table[not(@class='hidden')]"/>&#160;&#160;<xsl:apply-templates select="Text"/><xsl:value-of select="SubTitle"/></fo:block></xsl:when>
    3789<!-- title of subsections -->
    38 <xsl:when test="parent::Subsection">
    39 <fo:block font-size="10pt" font-weight="bold" text-align="left" id="{../@id}" space-before.optimum="25pt">
    40 <xsl:apply-templates select="Text"/>
    41 </fo:block>
    42 </xsl:when>
    43 
     90<xsl:when test="parent::Subsection"><fo:block xsl:use-attribute-sets="subsection-title-style" id="{../@id}" space-before.optimum="25pt"><xsl:apply-templates select="Text"/></fo:block></xsl:when>
    4491<!-- title of parts -->
    45 <xsl:when test="parent::Part">
    46 <fo:block font-size="10pt" font-weight="bold" text-align="left" id="{../@id}" space-before.optimum="15pt">
    47 <xsl:apply-templates select="Text"/>
    48 </fo:block>
    49 </xsl:when>
    50 </xsl:choose>
    51 </xsl:template>
    52 
     92<xsl:when test="parent::Part"><fo:block xsl:use-attribute-sets="subsection-title-style" id="{../@id}" space-before.optimum="15pt"><xsl:apply-templates select="Text"/></fo:block></xsl:when>
     93</xsl:choose>
     94</xsl:template>
    5395
    5496
    5597<xsl:template match="Title" mode="Figure">
    5698<xsl:param name="no"/>
    57 <fo:block id="Figure_{../@id}" font-size="10.0pt" font-weight="bold" line-height="15pt" background-color="grey" margin-left="25pt" space-before="10pt" space-after="3pt">
    58 Figure&#160;<xsl:value-of select="$no"/><xsl:if test="SubTitle"><xsl:value-of select="SubTitle"/></xsl:if>&#160;<xsl:apply-templates select="Text"/>
    59 </fo:block>
    60 </xsl:template>
    61 
    62 
    63 
    64 <!-- deal with various text paragraph formats -->
     99<fo:block id="Figure_{../@id}" xsl:use-attribute-sets="table-title-style">Figure&#160;<xsl:value-of select="$no"/><xsl:if test="SubTitle"><xsl:value-of select="SubTitle"/></xsl:if>&#160;<xsl:apply-templates select="Text"/></fo:block>
     100</xsl:template>
     101
     102
     103<!-- text paragraph with various formats -->
     104<xsl:attribute-set name="indented-text-style">
     105  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     106  <xsl:attribute name="font-size">11.0pt</xsl:attribute>
     107  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute>
     108  <xsl:attribute name="text-align">justify</xsl:attribute>
     109  <xsl:attribute name="margin-left">35pt</xsl:attribute>
     110</xsl:attribute-set>
     111<xsl:attribute-set name="normal-text-style">
     112  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     113  <xsl:attribute name="font-size">11.0pt</xsl:attribute>
     114  <xsl:attribute name="color">black</xsl:attribute>
     115  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute>
     116  <xsl:attribute name="text-align">justify</xsl:attribute>
     117  <xsl:attribute name="margin-left">25pt</xsl:attribute>
     118</xsl:attribute-set>
     119<xsl:attribute-set name="normal-table-text-style">
     120  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     121  <xsl:attribute name="font-size">9.0pt</xsl:attribute>
     122  <xsl:attribute name="color">black</xsl:attribute> 
     123  <xsl:attribute name="text-align">left</xsl:attribute>
     124</xsl:attribute-set>
    65125<xsl:template match="Text">
    66126<xsl:choose>
    67127<!-- these text display directly -->
    68128<xsl:when test="parent::Title|parent::Author|parent::Affiliation|parent::Version|parent::Date|parent::Bullet|parent::Footnote"><xsl:apply-templates/></xsl:when>
    69 
    70129<!-- text in table cells display with 11pt font size -->
    71 <xsl:when test="parent::th">
    72 <fo:block font-size="11.0pt"><xsl:apply-templates select="node()"/></fo:block>
    73 </xsl:when>
    74 
     130<xsl:when test="parent::th"><fo:block xsl:use-attribute-sets="normal-table-text-style"><xsl:apply-templates select="node()"/></fo:block></xsl:when>
    75131<!-- indented text -->
    76 <xsl:when test="parent::Indented">
    77 <fo:block font-size="11.0pt" color="black" text-align="justify" space-before.optimum="15pt" margin-left="35pt">
    78 <xsl:apply-templates/>
    79 </fo:block>
    80 </xsl:when>
    81 
     132<xsl:when test="parent::Indented"><fo:block xsl:use-attribute-sets="indented-text-style"><xsl:apply-templates/></fo:block></xsl:when>
    82133<!-- normal text paragraphs -->
    83 <xsl:otherwise>
    84 <fo:block font-size="11.0pt" color="black" text-align="justify" space-before.optimum="15pt" margin-left="25pt">
    85 <xsl:apply-templates/>
    86 </fo:block>
    87 </xsl:otherwise>
    88 </xsl:choose>
    89 </xsl:template>
    90 
    91 
    92 
    93 <xsl:template match="Section|Content"><xsl:apply-templates/></xsl:template>
    94 
    95 
     134<xsl:otherwise><fo:block xsl:use-attribute-sets="normal-text-style"><xsl:apply-templates/></fo:block></xsl:otherwise>
     135</xsl:choose>
     136</xsl:template>
     137
     138<xsl:attribute-set name="version-text-style">
     139  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     140  <xsl:attribute name="font-size">12.0pt</xsl:attribute>
     141  <xsl:attribute name="color">black</xsl:attribute>
     142  <xsl:attribute name="font-weight">bold</xsl:attribute>
     143  <xsl:attribute name="space-before.optimum">60pt</xsl:attribute>
     144  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     145  <xsl:attribute name="text-align-last">justify</xsl:attribute>
     146  <xsl:attribute name="margin-left">25pt</xsl:attribute>
     147</xsl:attribute-set>
    96148<xsl:template match="Version">
    97 <fo:block font-size="12.0pt" font-weight="bold" color="gray" space-before.optimum="15pt" padding-top="3pt" margin-left="25pt" text-align-last="justify">
     149<fo:block xsl:use-attribute-sets="version-text-style">
    98150<xsl:apply-templates/><fo:leader leader-pattern="space"/><xsl:value-of select="following-sibling::Date"/>
    99151</fo:block>
     
    101153
    102154
     155<xsl:attribute-set name="list-style">
     156  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     157  <xsl:attribute name="start-indent">2cm</xsl:attribute>
     158  <xsl:attribute name="provisional-distance-between-starts">12pt</xsl:attribute> 
     159  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute>
     160</xsl:attribute-set>
     161<xsl:attribute-set name="contained-list-style">
     162  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     163  <xsl:attribute name="start-indent">3cm</xsl:attribute>
     164  <xsl:attribute name="provisional-distance-between-starts">12pt</xsl:attribute> 
     165  <xsl:attribute name="space-before.optimum">5pt</xsl:attribute>
     166</xsl:attribute-set>
    103167<xsl:template match="BulletList">
    104168<xsl:if test="not(parent::Bullet)">
    105 <fo:list-block start-indent="2cm" provisional-distance-between-starts="12pt" font-family="{$font}" space-before.optimum="15pt">
     169<fo:list-block xsl:use-attribute-sets="list-style">
    106170<xsl:for-each select="Bullet">
    107171<fo:list-item><fo:list-item-label end-indent="label-end()">
     
    114178<xsl:if test="BulletList">                 
    115179<xsl:for-each select="BulletList">
    116 <fo:list-block start-indent="3cm" provisional-distance-between-starts="12pt" font-family="{$font}" space-before.optimum="5pt">
     180<fo:list-block xsl:use-attribute-sets="contained-list-style">
    117181<xsl:for-each select="Bullet">
    118182<fo:list-item><fo:list-item-label end-indent="label-end()">
     
    127191</xsl:for-each>
    128192</xsl:if>
    129 
    130 </fo:list-item-body>
    131 </fo:list-item>
    132 </xsl:for-each>
    133 </fo:list-block>
    134 </xsl:if>
    135 </xsl:template>
    136 
    137 
    138 
     193</fo:list-item-body></fo:list-item></xsl:for-each></fo:list-block></xsl:if>
     194</xsl:template>
     195
     196
     197<xsl:attribute-set name="contained-number-list-style">
     198  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     199  <xsl:attribute name="start-indent">3cm</xsl:attribute>
     200  <xsl:attribute name="provisional-distance-between-starts">12pt</xsl:attribute> 
     201  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute>
     202  <xsl:attribute name="space-after.optimum">15pt</xsl:attribute> 
     203</xsl:attribute-set>
    139204<xsl:template match="NumberedList">
    140 <fo:list-block start-indent="2cm" provisional-distance-between-starts="12pt" font-family="{$font}" space-before.optimum="15pt">
     205<fo:list-block xsl:use-attribute-sets="list-style">
    141206<xsl:for-each select="NumberedItem">
    142207<fo:list-item><fo:list-item-label end-indent="label-end()">
     
    153218<xsl:otherwise>
    154219<fo:block><xsl:apply-templates select="Text[1]/node()"/></fo:block>
    155 <fo:list-block start-indent="3cm" provisional-distance-between-starts="12pt" font-family="{$font}" space-before.optimum="15pt" space-after.optimum="15pt">
     220<fo:list-block xsl:use-attribute-sets="contained-number-list-style">
    156221<xsl:for-each select="child::*[position()>1]">
    157222<fo:list-item><fo:list-item-label end-indent="label-end()"><fo:block/></fo:list-item-label>
     
    170235
    171236
    172 <xsl:template match="b"><fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline></xsl:template>
    173 
    174 <xsl:template match="i"><fo:inline font-style="italic"><xsl:apply-templates/></fo:inline></xsl:template>
    175 
    176 <xsl:template match="u"><fo:inline text-decoration="underline" color="blue"><xsl:apply-templates/></fo:inline></xsl:template>
    177 
    178237<xsl:template match="CodeLine">
    179238<fo:block font-size="8.0pt" font-family="Courier" color="black" text-align="left">
     
    238297
    239298
    240 
    241 
    242 
    243299<!-- table -->
     300<xsl:attribute-set name="first-table-in-chapter-style">
     301  <xsl:attribute name="space-before.optimum">30pt</xsl:attribute>
     302</xsl:attribute-set>
    244303<xsl:template match="Table">
    245 <fo:table table-layout="fixed" width="100%">
     304<fo:table table-layout="fixed" width="100%" keep-with-previous="always">
     305<xsl:if test="not(preceding-sibling::*)"><fo:block space-before.optimum="25pt"/></xsl:if>
    246306<fo:table-column column-width="proportional-column-width(1)"/>
    247307<fo:table-body>
    248 
    249308<!-- table title -->
    250 
    251 <fo:table-row>
     309<!--
     310<fo:table-row>-->
    252311<!-- always keep the table title with the table -->
    253 <xsl:if test="not(normalize-space(Title/Text)='')"><xsl:attribute name="keep-with-next">always</xsl:attribute></xsl:if>             
     312<!--<xsl:if test="not(normalize-space(Title/Text)='')"><xsl:attribute name="keep-with-next">always</xsl:attribute></xsl:if>             
    254313<fo:table-cell>
    255314<fo:block>
     
    257316</fo:block>
    258317</fo:table-cell>
    259 </fo:table-row>
    260 
     318</fo:table-row>-->
     319<xsl:if test="not(normalize-space(Title/Text)='')">
     320<fo:table-row keep-with-next="always"><fo:table-cell><fo:block><xsl:apply-templates select="Title"/></fo:block></fo:table-cell></fo:table-row></xsl:if>
    261321<!-- table content -->
    262 
    263322<fo:table-row>
    264323<fo:table-cell>
     
    275334<xsl:for-each select="TableContent/tr[1]/th">
    276335<fo:table-column>
    277 
    278336<!-- calculate the column width based on the width in the original html file -->
    279 
    280337<xsl:attribute name="column-width">
    281338<xsl:value-of select="concat(number(@width) * 0.8, 'px')"/>
     
    285342<fo:table-body>
    286343<xsl:for-each select="TableContent/tr">
    287 
    288 <!-- this is to ensure no breaks in the table -->
    289 
    290 <fo:table-row keep-with-next="always">
     344<fo:table-row>
     345<!-- the table is not at the beginning of a chapter, otherwise, it will start from a new page, doesn't look nice -->
     346<xsl:if test="../../preceding-sibling::*"><xsl:attribute name="keep-with-next">always</xsl:attribute></xsl:if>
    291347<xsl:for-each select="th">
    292348<xsl:choose>
    293 
    294349<!-- when the cell contains only text -->
    295 
    296350<xsl:when test="not(../../../@class='hidden') and not(File)">
    297351<fo:table-cell column-number="{position()}" vertical-align="top" padding="2pt" border="0.5pt" border-color="black" border-style="solid">
     
    302356</fo:table-cell>
    303357</xsl:when>
    304 
    305358<!-- when the cell is an image -->
    306 
    307359<xsl:when test="not(../../../@class='hidden') and File">
    308360<fo:table-cell column-number="{position()}" vertical-align="top" text-align="right" padding="2pt" border="0.5pt" border-color="black" border-style="solid">
     
    310362</fo:table-cell>
    311363</xsl:when>
    312 
    313364<!-- deal with hidden table -->
    314 
    315365<xsl:when test="../../../@class='hidden'">
    316366<fo:table-cell column-number="{position()}" vertical-align="top" padding="2pt">
     
    329379<fo:table-column column-width="proportional-column-width(1)"/>
    330380<fo:table-body>
    331 
    332381<!-- figure title -->
    333382<!-- number of current figure = total_number_of_previous_figure - total_number_of_previous_sub_figures-->
     
    341390<xsl:apply-templates select="Title" mode="Figure"><xsl:with-param name="no" select="$no"/></xsl:apply-templates>
    342391</fo:block></fo:table-cell></fo:table-row>
    343 
    344392
    345393<fo:table-row><fo:table-cell>
     
    354402<fo:table-row>
    355403<fo:table-cell column-number="2">
    356 
    357404<xsl:if test="not(@calss='withLineNumber')">
    358 <xsl:attribute name="border-width">0.1pt</xsl:attribute><xsl:attribute name="border-style">solid</xsl:attribute>
    359 <xsl:attribute name="border-color">black</xsl:attribute><xsl:attribute name="border-collapse">separate</xsl:attribute>
     405  <xsl:attribute name="border-width">0.1pt</xsl:attribute><xsl:attribute name="border-style">solid</xsl:attribute>
     406  <xsl:attribute name="border-color">black</xsl:attribute><xsl:attribute name="border-collapse">separate</xsl:attribute>
    360407</xsl:if>
    361408
     
    364411<xsl:when test="@class='withLineNumber'">
    365412<fo:table start-indent="3pt" table-layout="fixed" width="100%" border-spacing="3pt">
    366 <fo:table-column column-width="28pt"/>                                           
     413<fo:table-column column-width="28pt"/>                       
    367414<fo:table-column column-width="proportional-column-width(1)" border-width="0.1pt" border-style="solid" border-color="black" border-collapse="separate"/>
    368415<fo:table-body>
     
    370417<fo:table-row>
    371418<fo:table-cell column-number="1">
    372 <fo:block font-size="8pt" font-family="Courier" space-before.optimum="3pt" text-align="right"><xsl:number/></fo:block>
     419<fo:block xsl:use-attribute-sets="codeline-in-table-style"><xsl:number/></fo:block>
    373420</fo:table-cell>
    374421<fo:table-cell column-number="2"><xsl:apply-templates select="."/></fo:table-cell>
     
    378425</fo:table>                                     
    379426</xsl:when>
    380 
    381427<xsl:otherwise><xsl:apply-templates select="CodeLine"/></xsl:otherwise>
    382428</xsl:choose></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:if>
     
    386432
    387433
    388 
    389434<xsl:template match="File">
    390435<xsl:variable name="height"><xsl:value-of select="@height"/>em</xsl:variable>
    391436<xsl:variable name="width"><xsl:value-of select="@width"/>em</xsl:variable>
     437<xsl:variable name="url">
     438<xsl:choose>
     439<xsl:when test="contains(@url, 'User_Fig_17.png') or contains(@url, 'User_Fig_18')"><xsl:value-of select="concat(substring-before(@url, '.png'), '_resized.png')"/></xsl:when>
     440<xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise>
     441</xsl:choose>
     442</xsl:variable>
    392443<fo:block display-align="center" text-align="center" space-after.optimum="15pt" space-before.optimum="3pt">
    393 <fo:external-graphic display-align="center" src="{@url}" content-height="{$height}" content-width="{$width}"/>
    394 </fo:block>
    395 </xsl:template>
    396 
     444<xsl:if test="not(parent::th)"><xsl:attribute name="margin-left">25pt</xsl:attribute></xsl:if>
     445<fo:external-graphic display-align="center" src="{$url}" content-height="{$height}" content-width="{$width}"/>
     446</fo:block>
     447</xsl:template>
    397448
    398449
     
    401452<xsl:variable name="no"><xsl:value-of select="@id"/></xsl:variable>
    402453<fo:footnote>
    403 <fo:inline baseline-shift="super" font-size="smaller">(<xsl:value-of select="$no"/>)</fo:inline>
     454<fo:inline baseline-shift="super" font-size="smaller">[<xsl:value-of select="$no"/>]</fo:inline>
    404455<fo:footnote-body>
    405456<fo:list-block provisional-label-separation="0pt" provisional-distance-between-starts="18pt" space-after.optimum="6pt">
    406457<fo:list-item>
    407 <fo:list-item-label end-indent="label-end()">
    408 <fo:block>(<xsl:number count="//FootnoteRef" level="any"/>)</fo:block>
    409 </fo:list-item-label>
    410 <fo:list-item-body start-indent="body-start()">
    411 <fo:block><xsl:apply-templates select="//Footnote[@id=$no]"/></fo:block>
    412 </fo:list-item-body>
     458<fo:list-item-label end-indent="label-end()"><fo:block>[<xsl:number count="//FootnoteRef" level="any"/>]</fo:block></fo:list-item-label>
     459<fo:list-item-body start-indent="body-start()"><fo:block><xsl:apply-templates select="//Footnote[@id=$no]"/></fo:block></fo:list-item-body>
    413460</fo:list-item>
    414461</fo:list-block>
     
    418465
    419466
     467<xsl:attribute-set name="bibitem-text-style">
     468  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     469  <xsl:attribute name="font-size">11.0pt</xsl:attribute>
     470  <xsl:attribute name="color">black</xsl:attribute>
     471  <xsl:attribute name="text-align">justify</xsl:attribute>
     472  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute>
     473  <xsl:attribute name="margin-left">25pt</xsl:attribute>
     474</xsl:attribute-set>
     475<xsl:template match="BibItem">
     476<fo:block xsl:use-attribute-sets="bibitem-text-style"><xsl:apply-templates/></fo:block>
     477</xsl:template>
     478
     479
     480<xsl:attribute-set name="author-text-style">
     481  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     482  <xsl:attribute name="font-size">15pt</xsl:attribute>
     483  <xsl:attribute name="text-align">right</xsl:attribute>
     484  <xsl:attribute name="space-before.optimum">25pt</xsl:attribute>
     485</xsl:attribute-set>
     486<xsl:template match="Author">
     487<fo:block xsl:use-attribute-sets="author-text-style"><xsl:apply-templates/></fo:block>
     488</xsl:template>
     489
     490
     491<xsl:attribute-set name="affiliation-text-style">
     492  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     493  <xsl:attribute name="font-size">10.0pt</xsl:attribute>
     494  <xsl:attribute name="text-align">right</xsl:attribute>
     495  <xsl:attribute name="space-before.optimum">25pt</xsl:attribute>
     496  <xsl:attribute name="space-after.optimum">125pt</xsl:attribute>
     497</xsl:attribute-set>
     498<xsl:template match="Affiliation">
     499<fo:block xsl:use-attribute-sets="affiliation-text-style"><xsl:apply-templates/></fo:block>
     500</xsl:template>
     501
     502<xsl:attribute-set name="comment-text-style">
     503  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     504  <xsl:attribute name="font-size">10.0pt</xsl:attribute>
     505  <xsl:attribute name="text-align">right</xsl:attribute>
     506  <xsl:attribute name="space-before.optimum">25pt</xsl:attribute>
     507  <xsl:attribute name="margin-left">25pt</xsl:attribute>
     508</xsl:attribute-set>
     509<xsl:template match="Comment">
     510<fo:block xsl:use-attribute-sets="comment-text-style"><xsl:apply-templates/></fo:block>
     511</xsl:template>
     512
     513
     514<xsl:attribute-set name="heading-text-style">
     515  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     516  <xsl:attribute name="font-size">18.0pt</xsl:attribute>
     517  <xsl:attribute name="text-align">right</xsl:attribute>
     518  <xsl:attribute name="color">gray</xsl:attribute>
     519</xsl:attribute-set>
     520<xsl:template match="Text" mode="heading"><fo:block xsl:use-attribute-sets="heading-text-style"><xsl:apply-templates/></fo:block></xsl:template>
     521
     522
     523<xsl:template match="text()"><xsl:value-of select="."/></xsl:template>
     524<xsl:template match="br"><fo:block/></xsl:template>
    420525<xsl:template match="Footnote"><xsl:apply-templates/></xsl:template>
    421 
    422 
    423 <xsl:template match="BibItem">
    424 <fo:block font-size="11.0pt" color="black" text-align="justify" space-before.optimum="15pt" margin-left="25pt"><xsl:apply-templates/></fo:block>
    425 </xsl:template>
    426 
    427 
    428 <xsl:template match="Author">
    429 <fo:block font-size="15pt" color="black" text-align="right" space-before.optimum="25pt"><xsl:apply-templates/></fo:block>
    430 </xsl:template>
    431 
    432 
    433 <xsl:template match="Affiliation">
    434 <fo:block font-size="10.0pt" color="black" text-align="right" space-after.optimum="125pt" space-before.optimum="25pt"><xsl:apply-templates/></fo:block>
    435 </xsl:template>
    436 
    437 
    438 <xsl:template match="Text" mode="heading"><fo:block font-size="18.0pt" color="gray" text-align="right"><xsl:apply-templates/></fo:block></xsl:template>
    439 
    440 
    441 <xsl:template match="text()"><xsl:value-of select="."/></xsl:template>
    442 
    443 <xsl:template match="br"><fo:block/></xsl:template>
     526<xsl:template match="Section"><xsl:apply-templates/></xsl:template>
     527<xsl:template match="Content"><xsl:if test="contains(parent::Chapter/@id, 'appendix')"><fo:block><xsl:apply-templates/></fo:block></xsl:if><xsl:if test="not(contains(parent::Chapter/@id, 'appendix'))"><xsl:apply-templates/></xsl:if></xsl:template>
     528<xsl:template match="b"><fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline></xsl:template>
     529<xsl:template match="i"><fo:inline font-style="italic"><xsl:apply-templates/></fo:inline></xsl:template>
     530<xsl:template match="u"><fo:inline text-decoration="underline" color="blue"><xsl:apply-templates/></fo:inline></xsl:template>
    444531</xsl:stylesheet>
  • trunk/gsdl-documentation/manuals/processing/manifest.xml

    r13784 r13861  
    22
    33<Manifest>
     4<Manual name="Installer's Manual" id="Install">
     5<file href="../xml-source/en/Install_en.xml"/>
     6<note>Describes in detail the Greenstone installation process.</note>
     7</Manual>
    48<Manual name="User's Manual" id="User">
    59<file href="../xml-source/en/User_en.xml"/>
     10<note>General details on using Greenstone collections, the Collector web interface for building new collections, and Greenstone's administrative facilities.</note>
    611</Manual>
    712<Manual name="Developer's Manual" id="Develop">
    813<file href="../xml-source/en/Develop_en.xml"/>
    9 </Manual>
    10 <Manual name="Installer's Manual" id="Install">
    11 <file href="../xml-source/en/Install_en.xml"/>
     14<note>A more detailed description of Greenstone's collection building process, including building collections from the command line or DOS prompt. Also a description of the structure of the Greenstone runtime system.</note>
    1215</Manual>
    1316<Manual name="From Paper to Collection" id="Paper">
    1417<file href="../xml-source/en/Paper_en.xml"/>
     18<note>A document describing the entire process of creating a digital library collection from paper documents. This includes the scanning and OCR process and the use of the "Organizer".</note>
    1519</Manual>
    1620</Manifest>
  • trunk/gsdl-documentation/manuals/processing/style.css

    r13785 r13861  
    33h1{ font-family:arial,sans-serif; font-weight:normal; font-size:25px; margin:0; }
    44h2{ font-family:arial,sans-serif; font-weight:normal; font-size:22px; margin:0; }
    5 h3{ font-family:arial,sans-serif; font-weight:normal; font-size:18px; }
     5h3{ font-family:arial,sans-serif; font-weight:normal; font-size:18px; margin-bottom:4px;}
    66h4{ font-family:arial,sans-serif; font-size:14px; }
    77
     
    1616
    1717div.linenumber{margin-top:0pt; margin-right:0in; margin-bottom:0in; margin-left:0pt; margin-bottom:0pt; font-family:Courier; FONT-SIZE: 8pt}
    18 div.comment{ margin-top: 0px; margin-bottom: 0px; margin-left: 20px;}
     18div.note{ margin-top: 0px; margin-bottom: 8px; margin-left: 20px;}
     19div.comment{font-size: 11px; font-family:arial,sans-serif; margin-top: 0px; margin-bottom: 4px; margin-left: 20px;}
    1920div.indexlink{ text-align: right;}
     21div.codeline_figure{ margin-top:0pt; margin-right:0in; margin-bottom:0in; margin-left:2pt; margin-bottom:0pt; font-family: Courier; font-size: 11px}
     22div.codeline{margin-top:0pt; margin-right:0pt; margin-bottom:0pt; margin-left:2em; font-size:12px; font-family:Courier;}
     23div.codeline_single{font-size:12px; margin-right:0pt; margin-left:2em; margin-bottom:2px; margin-top:2px; font-family:Courier;}
    2024
    2125li {FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #000000}
     
    3135
    3236img{border: 0px}
     37
     38dl{margin-top: 4px;}
     39
  • trunk/gsdl-documentation/manuals/processing/xml-to-many-html.xsl

    r13785 r13861  
    4343      <xsl:for-each select="/Manual/FootnoteList/Footnote[@id=$fnrefname]">
    4444        <!--<a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:number/>]</a>&#160;-->       
    45     <a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="$number"/>]</a>
    46         <xsl:apply-templates/>
    47         <br/>       
     45    <p><a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="$number"/>]</a>
     46        <xsl:apply-templates/></p>
    4847     </xsl:for-each>     
    4948      </xsl:for-each>
  • trunk/gsdl-documentation/manuals/processing/xml-to-pdf.xsl

    r13632 r13861  
    55<xsl:include href="crossref-pdf.xsl"/>
    66
    7 <xsl:variable name="font" select="sans-serif"/>
     7<xsl:attribute-set name="toc-heading-style">
     8  <xsl:attribute name="text-align">right</xsl:attribute>
     9  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     10  <xsl:attribute name="font-size">24.0pt</xsl:attribute>
     11  <xsl:attribute name="line-height">24.0pt</xsl:attribute>
     12  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     13  <xsl:attribute name="space-after.optimum">25pt</xsl:attribute> 
     14</xsl:attribute-set>
     15<xsl:attribute-set name="toc-chapter-style">
     16  <xsl:attribute name="text-align">start</xsl:attribute>
     17  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     18  <xsl:attribute name="font-size">15.0pt</xsl:attribute>
     19  <xsl:attribute name="line-height">15.0pt</xsl:attribute>
     20  <xsl:attribute name="text-align-last">justify</xsl:attribute>
     21  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     22  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute> 
     23</xsl:attribute-set>
     24<xsl:attribute-set name="toc-section-style">
     25  <xsl:attribute name="text-align">start</xsl:attribute>
     26  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     27  <xsl:attribute name="font-size">10.0pt</xsl:attribute>
     28  <xsl:attribute name="font-weight">bold</xsl:attribute>
     29  <xsl:attribute name="margin-left">12pt</xsl:attribute>
     30  <xsl:attribute name="text-align-last">justify</xsl:attribute>
     31  <xsl:attribute name="padding-top">3pt</xsl:attribute>
     32  <xsl:attribute name="space-before.optimum">15pt</xsl:attribute>
     33</xsl:attribute-set>
     34<xsl:attribute-set name="page-heading-style">
     35  <xsl:attribute name="text-align">start</xsl:attribute>
     36  <xsl:attribute name="font-family"><xsl:value-of select="$font"/></xsl:attribute>
     37  <xsl:attribute name="font-size">10.0pt</xsl:attribute>
     38  <xsl:attribute name="line-height">12pt</xsl:attribute>
     39</xsl:attribute-set>
    840
    941<xsl:template match="Manual">
    10 
    1142<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    1243<fo:layout-master-set>
     
    1546<fo:simple-page-master master-name="first" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
    1647<fo:region-start extent="1cm"/>
    17 <fo:region-body margin-top="3cm" margin-left="2cm"/>
    18 <fo:region-before precedence="true" extent="3cm"/>
     48<fo:region-body margin-top="2cm" margin-left="2cm"/>
     49<fo:region-before precedence="true" extent="2cm"/>
    1950<fo:region-after extent="1.5cm"/>
    2051</fo:simple-page-master>
     
    2253<!-- the preface page template -->
    2354<fo:simple-page-master master-name="preface" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
    24 <fo:region-body margin-top="3cm"/>
    25 <fo:region-before extent="3cm"/>
     55<fo:region-body margin-top="2cm"/>
     56<fo:region-before extent="2cm"/>
    2657<fo:region-after extent="1.5cm"/>
    2758</fo:simple-page-master>
     
    3061<fo:simple-page-master master-name="acknowledgements" page-height="29.7cm" page-width="21cm"
    3162margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
    32 <fo:region-body margin-top="3cm"/>
    33 <fo:region-before extent="3cm"/>
     63<fo:region-body margin-top="2cm"/>
     64<fo:region-before extent="2cm"/>
    3465<fo:region-after extent="1.5cm"/>
    3566</fo:simple-page-master>
     
    3768<!-- the table of content page template -->
    3869<fo:simple-page-master master-name="ToC" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
    39 <fo:region-body margin-top="3cm"/>
    40 <fo:region-before extent="3cm"/>
     70<fo:region-body margin-top="2cm"/>
     71<fo:region-before extent="2cm"/>
    4172<fo:region-after extent="1.5cm"/>
    4273</fo:simple-page-master>
     
    4475<!-- the document page template -->
    4576<fo:simple-page-master master-name="document" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
    46 <fo:region-body margin-top="3cm"/>
    47 <fo:region-before extent="3cm" precedence="true" display-align="after"/>
     77<fo:region-body margin-top="2cm"/>
     78<fo:region-before extent="2cm" precedence="true" display-align="after"/>
    4879<fo:region-after extent="1.5cm"/>
    4980</fo:simple-page-master>
     
    5889<!-- left banner image -->
    5990<fo:block-container height="29cm" width="2cm" left="0cm" top="0cm">
    60 <fo:block><fo:external-graphic src="url('Install_files/image001.jpg')" height="29cm"/></fo:block>
     91<fo:block><!--<fo:external-graphic src="url('Install_files/image001.jpg')" height="29cm"/>--></fo:block>
    6192</fo:block-container>
    6293</fo:static-content>
     
    75106
    76107<!-- Preface -->
    77 
    78108<fo:page-sequence master-reference="preface">
    79 <fo:flow flow-name="xsl-region-body">
    80 <xsl:for-each select="Section[not(@id='acknowledgements')]"><xsl:apply-templates/></xsl:for-each>
    81 </fo:flow>
    82 </fo:page-sequence>
    83 
     109<fo:flow flow-name="xsl-region-body"><xsl:for-each select="Section[not(@id='acknowledgements')]"><xsl:apply-templates/></xsl:for-each></fo:flow>
     110</fo:page-sequence>
     111<!-- Start a new page for acknowledgement -->
    84112<fo:page-sequence master-reference="acknowledgements">
    85113<fo:flow flow-name="xsl-region-body"><xsl:apply-templates select="Section[@id='acknowledgements']"/></fo:flow>
     
    87115
    88116
    89 
    90117<!-- ToC Page -->
    91 
    92118<fo:page-sequence master-reference="ToC">
    93119<fo:flow flow-name="xsl-region-body">
    94 <fo:block text-align="right" font-size="24.0pt" line-height="24pt" space-after.optimum="25pt" padding-top="3pt">Contents</fo:block>
     120<fo:block xsl:use-attribute-sets="toc-heading-style">Contents</fo:block>
    95121<xsl:for-each select="Chapter">
    96122  <xsl:variable name="show_number">
     
    98124    <xsl:if test="not(starts-with(@id, 'appendix')) and not(starts-with(@id, 'biblio'))">y</xsl:if>
    99125  </xsl:variable>
    100   <fo:block text-align="start" font-size="15.0pt" line-height="15pt" text-align-last="justify" space-before.optimum="15pt" padding-top="3pt">
     126  <fo:block xsl:use-attribute-sets="toc-chapter-style">
    101127  <fo:basic-link color="black" internal-destination="Chapter_{@id}">
    102128  <xsl:if test="$show_number='y'"><xsl:number/>&#160;&#160;</xsl:if>
     
    106132  </fo:basic-link>
    107133  </fo:block>
    108 
    109134  <xsl:for-each select="Content/Section">
    110     <fo:block text-align="start" font-size="10.0pt" font-weight="bold" text-align-last="justify" padding-top="3pt" space-before.optimum="15pt" margin-left="12pt">
     135    <fo:block xsl:use-attribute-sets="toc-section-style">
    111136    <fo:basic-link color="black" internal-destination="Section_{@id}">
    112137    <xsl:if test="$show_number='y'"><xsl:number level="multiple" count="Chapter|Chapter/Content/Section" format="1.1"/>&#160;&#160;</xsl:if>
     
    119144  </xsl:for-each>
    120145</xsl:for-each>
    121 
    122 
    123 
    124146<!-- figure and table lists -->
    125147<!--
     
    136158</xsl:for-each>
    137159</xsl:if>
    138 
    139160<xsl:if test="not(count(//Table[not(normalize-space(Title/Text)='')])=0)">
    140161<fo:block break-before="page" space-before.optimum="50pt" space-after.optimum="15pt" font-size="15pt" font-weight="bold">Tables</fo:block>
     
    150171</xsl:if>
    151172-->
    152 
    153173</fo:flow>
    154174</fo:page-sequence>
    155175
    156176
    157 
    158177<!-- Document -->
    159 
    160178<fo:page-sequence master-reference="document" initial-page-number="1">
    161179<!-- defines header of a page -->
     
    163181<xsl:variable name="pageno"><fo:page-number/></xsl:variable>
    164182<xsl:choose>
    165 <xsl:when test="$pageno='1'">
    166 <fo:block-container height="1cm" width="18cm" left="0cm" top="0cm" display-align="after">
    167 <fo:block text-align="start" font-size="10pt" font-family="{$font}" line-height="14pt">greenstone.org<fo:external-graphic src="url('_files/header.gif')"/>
    168 </fo:block>
    169 </fo:block-container>
    170 </xsl:when>
    171 <xsl:otherwise>
    172 <fo:block-container height="1cm" width="18cm" left="0cm" top="0cm" display-align="after">
    173 <fo:block text-align="start" font-size="10pt" font-family="{$font}" line-height="14pt">
    174 <fo:page-number/>&#160;&#160;
    175 <fo:retrieve-marker retrieve-class-name="head" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/>
    176 </fo:block>
    177 </fo:block-container>
     183<xsl:when test="$pageno='1'"><!--<fo:block-container height="1cm" width="18cm" left="0cm" top="0cm" display-align="after"><fo:block text-align="start" font-size="10pt" font-family="{$font}" line-height="14pt">greenstone.org<fo:external-graphic src="url('_files/header.gif')"/></fo:block></fo:block-container>--></xsl:when>
     184<xsl:otherwise><fo:block-container height="1cm" width="18cm" left="0cm" top="0cm" display-align="after"><fo:block xsl:use-attribute-sets="page-heading-style"><fo:page-number/>&#160;&#160;<fo:retrieve-marker retrieve-class-name="head" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/></fo:block></fo:block-container>
    178185</xsl:otherwise>
    179186</xsl:choose>
     
    181188
    182189<!-- footer of a page -->
    183 <fo:static-content flow-name="xsl-footnote-separator">
    184 <fo:block><fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="0.5pt"/></fo:block>
    185 </fo:static-content>
     190<fo:static-content flow-name="xsl-footnote-separator"><fo:block><fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="0.5pt"/></fo:block></fo:static-content>
    186191
    187192<fo:flow flow-name="xsl-region-body">
    188193<xsl:for-each select="Chapter">
    189194<!-- header -->
    190 <fo:block><fo:marker marker-class-name="head"><xsl:value-of select="Title"/></fo:marker></fo:block>
     195<fo:block xsl:use-attribute-sets="page-heading-style"><fo:marker marker-class-name="head"><xsl:value-of select="Title"/></fo:marker></fo:block>
    191196<xsl:apply-templates/>
    192197<xsl:if test="not(count(following-sibling::*[not(name()='FootnoteList')])=0)">
     
    194199</xsl:if>
    195200</xsl:for-each>
    196 
    197201</fo:flow>
    198202</fo:page-sequence>
  • trunk/gsdl-documentation/manuals/processing/xml-to-top-index.xsl

    r13783 r13861  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    3  
     2<!DOCTYPE TutorialList [
     3     <!ENTITY nbsp "&#160;">
     4     <!ENTITY rarr "&#8594;">
     5     <!ENTITY mdash "&#8212;">
     6]>
     7
     8<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    49  <xsl:output method="html"/>
    510  <xsl:include href="common.xsl"/>
     
    712  <xsl:variable name="es">español</xsl:variable>
    813  <xsl:variable name="fr">français</xsl:variable>
    9   <xsl:variable name="ru">русскОй</xsl:variable>
     14  <xsl:variable name="ru">русскОй</xsl:variable>
     15 
     16  <xsl:variable name="sourceforgelink">http://prdownloads.sourceforge.net/greenstone</xsl:variable>
    1017     
     18  <xsl:variable name="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</xsl:variable>
    1119  <xsl:template match="Manifest">
    1220    <html>
     
    1725      <xsl:for-each select="Manual">
    1826        <h3><a class="title" href="en/html/{@id}_en_index.html"><xsl:apply-templates select="@name"/></a><xsl:text>  </xsl:text><a class="title" href="es/html/{@id}_es_index.html"><xsl:value-of select="$es"/></a><xsl:text>  </xsl:text><a class="title" href="fr/html/{@id}_fr_index.html"><xsl:value-of select="$fr"/></a><xsl:text>  </xsl:text><a class="title" href="ru/html/{@id}_ru_index.html"><xsl:value-of select="$ru"/></a></h3>
    19         <div class="comment"><a class="comment" href="en/html/{@id}_en_all.html">HTML version</a><xsl:text>  </xsl:text><a class="comment" href="es/html/{@id}_es_all.html"><xsl:value-of select="$es"/></a><xsl:text>  </xsl:text><a class="comment" href="fr/html/{@id}_fr_all.html"><xsl:value-of select="$fr"/></a><xsl:text>  </xsl:text><a class="comment" href="ru/html/{@id}_ru_all.html"><xsl:value-of select="$ru"/></a></div>
    20     <div class="comment"><a class="comment" href="en/pdf/{@id}_en.pdf">PDF version</a><xsl:text>  </xsl:text><a class="comment" href="es/pdf/{@id}_es.pdf"><xsl:value-of select="$es"/></a><xsl:text>  </xsl:text><a class="comment" href="fr/pdf/{@id}_fr.pdf"><xsl:value-of select="$fr"/></a><xsl:text>  </xsl:text><a class="comment" href="ru/pdf/{@id}_ru.pdf"><xsl:value-of select="$ru"/></a></div>
     27       
     28        <div class="note"><xsl:value-of select="note"/></div>
     29       
     30        <div class="comment">Printable version: english (<a class="comment" href="en/html/{@id}_en_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-en.pdf">PDF</a>)<xsl:value-of select="$tab"/><xsl:value-of select="$es"/> (<a class="comment" href="es/html/{@id}_es_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-es.pdf">PDF</a>)<xsl:value-of select="$tab"/><xsl:value-of select="$fr"/> (<a class="comment" href="fr/html/{@id}_fr_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-fr.pdf">PDF</a>)<xsl:value-of select="$tab"/><xsl:value-of select="$ru"/> (<a class="comment" href="ru/html/{@id}_ru_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-ru.pdf">PDF</a>)</div>
     31       
    2132        <dl><xsl:apply-templates select="file"><xsl:with-param name="manualNodes" select="document(file/@href)"/></xsl:apply-templates></dl>
    2233      </xsl:for-each>
Note: See TracChangeset for help on using the changeset viewer.