Changeset 13861
- Timestamp:
- 2007-02-07T13:29:17+13:00 (17 years ago)
- Location:
- trunk/gsdl-documentation/manuals/processing
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl-documentation/manuals/processing/common.xsl
r13785 r13861 6 6 7 7 <xsl:template match="Title"><p><b><i><xsl:apply-templates/></i></b></p></xsl:template> 8 8 9 9 10 <xsl:template match="Title" mode="Figure"> … … 15 16 </xsl:template> 16 17 18 17 19 <xsl:template match="Title" mode="Table"> 18 20 <div style="margin-right:1.7pt;" align="center"> 19 21 <b>Table <xsl:number count="Table[not(@class='hidden')]" level="any"/> <xsl:apply-templates/></b></div> 20 22 </xsl:template> 23 21 24 22 25 <xsl:template match="NumberedList"><ol><xsl:apply-templates/></ol></xsl:template> 23 26 <xsl:template match="NumberedItem"><li><xsl:apply-templates/></li></xsl:template> 24 27 28 25 29 <xsl:template match="BulletList"> 26 30 <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> 30 32 <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> 39 35 </xsl:template> 36 40 37 41 38 <xsl:template match="Text"> 42 39 <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> 46 41 <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> 50 43 <xsl:otherwise><xsl:apply-templates/></xsl:otherwise> 51 44 </xsl:choose> 52 45 </xsl:template> 53 46 47 54 48 <xsl:template match="CodeLine"> 55 49 <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> 65 54 <!-- 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> 70 56 </xsl:choose> 71 57 </xsl:template> 58 72 59 73 60 <xsl:template match="Figure"> … … 78 65 <xsl:number count="Figure[Title/SubTitle and substring(translate(@id, '_0123456789', '99999999999'), string-length(@id)-1, string-length(@id))='99']" level="any"/> 79 66 </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 81 69 <p/> 82 70 <xsl:apply-templates select="Title" mode="Figure"><xsl:with-param name="no" select="$no"/></xsl:apply-templates> … … 87 75 <tr> 88 76 <xsl:if test="parent::Figure[@class='withLineNumber']"> 89 <td><div style="linenumber"><xsl:number value="position()" format="1"/>  </div></td></xsl:if>77 <td><div class="linenumber"><xsl:number value="position()" format="1"/>  </div></td></xsl:if> 90 78 <td><xsl:apply-templates select="."/></td></tr> 91 79 </xsl:for-each> … … 98 86 </xsl:template> 99 87 88 100 89 <xsl:template match="Table"> 101 <p/> 102 <a id="Table_{@id}"/> 90 <p/><a id="Table_{@id}"/> 103 91 <xsl:if test="not(@class='hidden') and not(normalize-space(Title/Text)='')"><xsl:apply-templates select="Title" mode="Table"/></xsl:if> 104 92 <table cellpadding="2pt" cellspacing="2pt"> 105 93 <xsl:if test="not(@class='hidden')"> 106 94 <xsl:if test="not(../../@class='hidden')"><xsl:attribute name="style">border-collapse:collapse;border:1px solid black;</xsl:attribute></xsl:if> 107 95 <xsl:attribute name="rules">rows</xsl:attribute><xsl:attribute name="align">center</xsl:attribute> 108 96 </xsl:if> 109 97 <xsl:if test="@class='hidden'"><xsl:attribute name="width">90%</xsl:attribute><xsl:attribute name="align">center</xsl:attribute></xsl:if> 110 111 98 <xsl:for-each select="TableContent/tr"> 99 <tr> 112 100 <xsl:if test="not(../../@class='hidden')"><xsl:attribute name="style">border-collapse:collapse;border:1px solid black;</xsl:attribute></xsl:if> 113 114 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> 115 103 </tr> 116 </xsl:for-each>104 </xsl:for-each> 117 105 </table> 118 106 <br/> 119 107 </xsl:template> 120 108 109 121 110 <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'))"> 124 112 <xsl:number level="multiple" format="1.1" count="//Chapter|//Chapter//Section"/> </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/*"/> 127 114 </xsl:template> 115 128 116 129 117 <xsl:template match="Section" mode="preface"> … … 131 119 <xsl:apply-templates select="Content/*"/> 132 120 </xsl:template> 121 133 122 134 123 <xsl:template match="Subsection"> … … 138 127 </xsl:template> 139 128 129 140 130 <xsl:template match="Part"><a id="Part_{@id}"/><xsl:apply-templates/></xsl:template> 141 142 131 <xsl:template match="Comment"><xsl:apply-templates/></xsl:template> 143 132 <xsl:template match="Indented"><p><div style="margin-left: 1em;"><xsl:apply-templates/></div></p></xsl:template> … … 146 135 </xsl:template> 147 136 <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> 154 139 <xsl:template match="Author"><b><xsl:apply-templates/></b></xsl:template> 155 140 <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>  <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>  <xsl:apply-templates select="Date/Text"/></p></xsl:template> 142 157 143 158 144 <xsl:template match="Chapter|Appendix|Bibliography" mode="index"> … … 161 147 </xsl:template> 162 148 149 163 150 <xsl:template match="Section" mode="index"> 164 151 <dt><a href="#Section_{@id}"><xsl:apply-templates select="Title/Text"/></a></dt> 165 152 </xsl:template> 153 166 154 167 155 <xsl:template match="Chapter"> … … 171 159 <xsl:apply-templates select="Content/*"/> 172 160 </xsl:template> 173 174 161 175 162 … … 185 172 <xsl:value-of select="concat($no, $subtitle)"/> 186 173 </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> 188 175 <xsl:template match="Chapter" mode="ref"><xsl:number level="any"/></xsl:template> 189 176 <xsl:template match="Section" mode="ref"><xsl:number count="//Chapter|//Chapter//Section" format="1.1" level="multiple"/></xsl:template> … … 191 178 192 179 193 180 <xsl:template match="SupplementaryText"> 194 181 <xsl:param name="manual_id" select="''"/> 195 182 <xsl:param name="manual_lang" select="''"/> … … 201 188 </xsl:for-each> 202 189 </xsl:template> 203 204 190 </xsl:stylesheet> -
trunk/gsdl-documentation/manuals/processing/crossref-pdf.xsl
r13632 r13861 22 22 </xsl:template> 23 23 24 < xsl:template match="FootnoteList">24 <!--<xsl:template match="FootnoteList"> 25 25 <xsl:for-each select="Footnote"> 26 26 <a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="@id"/>]</a> … … 29 29 </xsl:for-each> 30 30 </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>--> 32 32 33 33 <xsl:template match="Figure" mode="ref"> … … 43 43 </xsl:template> 44 44 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> 46 46 47 47 <xsl:template match="Chapter" mode="ref"><xsl:number level="any"/></xsl:template> -
trunk/gsdl-documentation/manuals/processing/crossref.xsl
r13632 r13861 26 26 <xsl:template match="FootnoteList"> 27 27 <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> 31 30 </xsl:for-each> 32 31 </xsl:template> -
trunk/gsdl-documentation/manuals/processing/fo-common.xsl
r13632 r13861 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> 3 3 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 5 75 6 76 <!-- display title in different formats --> … … 8 78 <xsl:choose> 9 79 <!-- 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> 14 81 <!-- 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> 22 84 <!-- 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"/>  </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"/>  </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"/>  </xsl:if><xsl:apply-templates select="Text"/></fo:block></xsl:when> 30 87 <!-- 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 <xsl:number level="any" count="Table[not(@class='hidden')]"/>  <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 <xsl:number level="any" count="Table[not(@class='hidden')]"/>  <xsl:apply-templates select="Text"/><xsl:value-of select="SubTitle"/></fo:block></xsl:when> 37 89 <!-- 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> 44 91 <!-- 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> 53 95 54 96 55 97 <xsl:template match="Title" mode="Figure"> 56 98 <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 <xsl:value-of select="$no"/><xsl:if test="SubTitle"><xsl:value-of select="SubTitle"/></xsl:if> <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 <xsl:value-of select="$no"/><xsl:if test="SubTitle"><xsl:value-of select="SubTitle"/></xsl:if> <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> 65 125 <xsl:template match="Text"> 66 126 <xsl:choose> 67 127 <!-- these text display directly --> 68 128 <xsl:when test="parent::Title|parent::Author|parent::Affiliation|parent::Version|parent::Date|parent::Bullet|parent::Footnote"><xsl:apply-templates/></xsl:when> 69 70 129 <!-- 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> 75 131 <!-- 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> 82 133 <!-- 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> 96 148 <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"> 98 150 <xsl:apply-templates/><fo:leader leader-pattern="space"/><xsl:value-of select="following-sibling::Date"/> 99 151 </fo:block> … … 101 153 102 154 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> 103 167 <xsl:template match="BulletList"> 104 168 <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"> 106 170 <xsl:for-each select="Bullet"> 107 171 <fo:list-item><fo:list-item-label end-indent="label-end()"> … … 114 178 <xsl:if test="BulletList"> 115 179 <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"> 117 181 <xsl:for-each select="Bullet"> 118 182 <fo:list-item><fo:list-item-label end-indent="label-end()"> … … 127 191 </xsl:for-each> 128 192 </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> 139 204 <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"> 141 206 <xsl:for-each select="NumberedItem"> 142 207 <fo:list-item><fo:list-item-label end-indent="label-end()"> … … 153 218 <xsl:otherwise> 154 219 <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"> 156 221 <xsl:for-each select="child::*[position()>1]"> 157 222 <fo:list-item><fo:list-item-label end-indent="label-end()"><fo:block/></fo:list-item-label> … … 170 235 171 236 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 178 237 <xsl:template match="CodeLine"> 179 238 <fo:block font-size="8.0pt" font-family="Courier" color="black" text-align="left"> … … 238 297 239 298 240 241 242 243 299 <!-- 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> 244 303 <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> 246 306 <fo:table-column column-width="proportional-column-width(1)"/> 247 307 <fo:table-body> 248 249 308 <!-- table title --> 250 251 <fo:table-row> 309 <!-- 310 <fo:table-row>--> 252 311 <!-- 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> 254 313 <fo:table-cell> 255 314 <fo:block> … … 257 316 </fo:block> 258 317 </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> 261 321 <!-- table content --> 262 263 322 <fo:table-row> 264 323 <fo:table-cell> … … 275 334 <xsl:for-each select="TableContent/tr[1]/th"> 276 335 <fo:table-column> 277 278 336 <!-- calculate the column width based on the width in the original html file --> 279 280 337 <xsl:attribute name="column-width"> 281 338 <xsl:value-of select="concat(number(@width) * 0.8, 'px')"/> … … 285 342 <fo:table-body> 286 343 <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> 291 347 <xsl:for-each select="th"> 292 348 <xsl:choose> 293 294 349 <!-- when the cell contains only text --> 295 296 350 <xsl:when test="not(../../../@class='hidden') and not(File)"> 297 351 <fo:table-cell column-number="{position()}" vertical-align="top" padding="2pt" border="0.5pt" border-color="black" border-style="solid"> … … 302 356 </fo:table-cell> 303 357 </xsl:when> 304 305 358 <!-- when the cell is an image --> 306 307 359 <xsl:when test="not(../../../@class='hidden') and File"> 308 360 <fo:table-cell column-number="{position()}" vertical-align="top" text-align="right" padding="2pt" border="0.5pt" border-color="black" border-style="solid"> … … 310 362 </fo:table-cell> 311 363 </xsl:when> 312 313 364 <!-- deal with hidden table --> 314 315 365 <xsl:when test="../../../@class='hidden'"> 316 366 <fo:table-cell column-number="{position()}" vertical-align="top" padding="2pt"> … … 329 379 <fo:table-column column-width="proportional-column-width(1)"/> 330 380 <fo:table-body> 331 332 381 <!-- figure title --> 333 382 <!-- number of current figure = total_number_of_previous_figure - total_number_of_previous_sub_figures--> … … 341 390 <xsl:apply-templates select="Title" mode="Figure"><xsl:with-param name="no" select="$no"/></xsl:apply-templates> 342 391 </fo:block></fo:table-cell></fo:table-row> 343 344 392 345 393 <fo:table-row><fo:table-cell> … … 354 402 <fo:table-row> 355 403 <fo:table-cell column-number="2"> 356 357 404 <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> 360 407 </xsl:if> 361 408 … … 364 411 <xsl:when test="@class='withLineNumber'"> 365 412 <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"/> 367 414 <fo:table-column column-width="proportional-column-width(1)" border-width="0.1pt" border-style="solid" border-color="black" border-collapse="separate"/> 368 415 <fo:table-body> … … 370 417 <fo:table-row> 371 418 <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> 373 420 </fo:table-cell> 374 421 <fo:table-cell column-number="2"><xsl:apply-templates select="."/></fo:table-cell> … … 378 425 </fo:table> 379 426 </xsl:when> 380 381 427 <xsl:otherwise><xsl:apply-templates select="CodeLine"/></xsl:otherwise> 382 428 </xsl:choose></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></xsl:if> … … 386 432 387 433 388 389 434 <xsl:template match="File"> 390 435 <xsl:variable name="height"><xsl:value-of select="@height"/>em</xsl:variable> 391 436 <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> 392 443 <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> 397 448 398 449 … … 401 452 <xsl:variable name="no"><xsl:value-of select="@id"/></xsl:variable> 402 453 <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> 404 455 <fo:footnote-body> 405 456 <fo:list-block provisional-label-separation="0pt" provisional-distance-between-starts="18pt" space-after.optimum="6pt"> 406 457 <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> 413 460 </fo:list-item> 414 461 </fo:list-block> … … 418 465 419 466 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> 420 525 <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> 444 531 </xsl:stylesheet> -
trunk/gsdl-documentation/manuals/processing/manifest.xml
r13784 r13861 2 2 3 3 <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> 4 8 <Manual name="User's Manual" id="User"> 5 9 <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> 6 11 </Manual> 7 12 <Manual name="Developer's Manual" id="Develop"> 8 13 <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> 12 15 </Manual> 13 16 <Manual name="From Paper to Collection" id="Paper"> 14 17 <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> 15 19 </Manual> 16 20 </Manifest> -
trunk/gsdl-documentation/manuals/processing/style.css
r13785 r13861 3 3 h1{ font-family:arial,sans-serif; font-weight:normal; font-size:25px; margin:0; } 4 4 h2{ 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; }5 h3{ font-family:arial,sans-serif; font-weight:normal; font-size:18px; margin-bottom:4px;} 6 6 h4{ font-family:arial,sans-serif; font-size:14px; } 7 7 … … 16 16 17 17 div.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;} 18 div.note{ margin-top: 0px; margin-bottom: 8px; margin-left: 20px;} 19 div.comment{font-size: 11px; font-family:arial,sans-serif; margin-top: 0px; margin-bottom: 4px; margin-left: 20px;} 19 20 div.indexlink{ text-align: right;} 21 div.codeline_figure{ margin-top:0pt; margin-right:0in; margin-bottom:0in; margin-left:2pt; margin-bottom:0pt; font-family: Courier; font-size: 11px} 22 div.codeline{margin-top:0pt; margin-right:0pt; margin-bottom:0pt; margin-left:2em; font-size:12px; font-family:Courier;} 23 div.codeline_single{font-size:12px; margin-right:0pt; margin-left:2em; margin-bottom:2px; margin-top:2px; font-family:Courier;} 20 24 21 25 li {FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #000000} … … 31 35 32 36 img{border: 0px} 37 38 dl{margin-top: 4px;} 39 -
trunk/gsdl-documentation/manuals/processing/xml-to-many-html.xsl
r13785 r13861 43 43 <xsl:for-each select="/Manual/FootnoteList/Footnote[@id=$fnrefname]"> 44 44 <!--<a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:number/>]</a> --> 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> 48 47 </xsl:for-each> 49 48 </xsl:for-each> -
trunk/gsdl-documentation/manuals/processing/xml-to-pdf.xsl
r13632 r13861 5 5 <xsl:include href="crossref-pdf.xsl"/> 6 6 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> 8 40 9 41 <xsl:template match="Manual"> 10 11 42 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> 12 43 <fo:layout-master-set> … … 15 46 <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"> 16 47 <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"/> 19 50 <fo:region-after extent="1.5cm"/> 20 51 </fo:simple-page-master> … … 22 53 <!-- the preface page template --> 23 54 <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"/> 26 57 <fo:region-after extent="1.5cm"/> 27 58 </fo:simple-page-master> … … 30 61 <fo:simple-page-master master-name="acknowledgements" page-height="29.7cm" page-width="21cm" 31 62 margin-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"/> 34 65 <fo:region-after extent="1.5cm"/> 35 66 </fo:simple-page-master> … … 37 68 <!-- the table of content page template --> 38 69 <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"/> 41 72 <fo:region-after extent="1.5cm"/> 42 73 </fo:simple-page-master> … … 44 75 <!-- the document page template --> 45 76 <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"/> 48 79 <fo:region-after extent="1.5cm"/> 49 80 </fo:simple-page-master> … … 58 89 <!-- left banner image --> 59 90 <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> 61 92 </fo:block-container> 62 93 </fo:static-content> … … 75 106 76 107 <!-- Preface --> 77 78 108 <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 --> 84 112 <fo:page-sequence master-reference="acknowledgements"> 85 113 <fo:flow flow-name="xsl-region-body"><xsl:apply-templates select="Section[@id='acknowledgements']"/></fo:flow> … … 87 115 88 116 89 90 117 <!-- ToC Page --> 91 92 118 <fo:page-sequence master-reference="ToC"> 93 119 <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> 95 121 <xsl:for-each select="Chapter"> 96 122 <xsl:variable name="show_number"> … … 98 124 <xsl:if test="not(starts-with(@id, 'appendix')) and not(starts-with(@id, 'biblio'))">y</xsl:if> 99 125 </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"> 101 127 <fo:basic-link color="black" internal-destination="Chapter_{@id}"> 102 128 <xsl:if test="$show_number='y'"><xsl:number/>  </xsl:if> … … 106 132 </fo:basic-link> 107 133 </fo:block> 108 109 134 <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"> 111 136 <fo:basic-link color="black" internal-destination="Section_{@id}"> 112 137 <xsl:if test="$show_number='y'"><xsl:number level="multiple" count="Chapter|Chapter/Content/Section" format="1.1"/>  </xsl:if> … … 119 144 </xsl:for-each> 120 145 </xsl:for-each> 121 122 123 124 146 <!-- figure and table lists --> 125 147 <!-- … … 136 158 </xsl:for-each> 137 159 </xsl:if> 138 139 160 <xsl:if test="not(count(//Table[not(normalize-space(Title/Text)='')])=0)"> 140 161 <fo:block break-before="page" space-before.optimum="50pt" space-after.optimum="15pt" font-size="15pt" font-weight="bold">Tables</fo:block> … … 150 171 </xsl:if> 151 172 --> 152 153 173 </fo:flow> 154 174 </fo:page-sequence> 155 175 156 176 157 158 177 <!-- Document --> 159 160 178 <fo:page-sequence master-reference="document" initial-page-number="1"> 161 179 <!-- defines header of a page --> … … 163 181 <xsl:variable name="pageno"><fo:page-number/></xsl:variable> 164 182 <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/>   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/>  <fo:retrieve-marker retrieve-class-name="head" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/></fo:block></fo:block-container> 178 185 </xsl:otherwise> 179 186 </xsl:choose> … … 181 188 182 189 <!-- 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> 186 191 187 192 <fo:flow flow-name="xsl-region-body"> 188 193 <xsl:for-each select="Chapter"> 189 194 <!-- 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> 191 196 <xsl:apply-templates/> 192 197 <xsl:if test="not(count(following-sibling::*[not(name()='FootnoteList')])=0)"> … … 194 199 </xsl:if> 195 200 </xsl:for-each> 196 197 201 </fo:flow> 198 202 </fo:page-sequence> -
trunk/gsdl-documentation/manuals/processing/xml-to-top-index.xsl
r13783 r13861 1 1 <?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 " "> 4 <!ENTITY rarr "→"> 5 <!ENTITY mdash "—"> 6 ]> 7 8 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 9 <xsl:output method="html"/> 5 10 <xsl:include href="common.xsl"/> … … 7 12 <xsl:variable name="es">español</xsl:variable> 8 13 <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> 10 17 18 <xsl:variable name="tab"> </xsl:variable> 11 19 <xsl:template match="Manifest"> 12 20 <html> … … 17 25 <xsl:for-each select="Manual"> 18 26 <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 21 32 <dl><xsl:apply-templates select="file"><xsl:with-param name="manualNodes" select="document(file/@href)"/></xsl:apply-templates></dl> 22 33 </xsl:for-each>
Note:
See TracChangeset
for help on using the changeset viewer.