Changeset 3453864 for stylesheets
- Timestamp:
- 09/04/2004 05:13:39 PM (20 years ago)
- Branches:
- 6.0
- Children:
- 3d3643fd
- Parents:
- 557c4e0
- Location:
- stylesheets
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-pdf.xsl
r557c4e0 r3453864 13 13 <xsl:include href="pdf/lfs-pagesetup.xsl"/> 14 14 <xsl:include href="pdf/lfs-sections.xsl"/> 15 <xsl:include href="pdf/lfs-admon.xsl"/> 15 16 <xsl:include href="pdf/lfs-mixed.xsl"/> 16 17 <xsl:include href="pdf/lfs-xref.xsl"/> -
stylesheets/pdf/lfs-mixed.xsl
r557c4e0 r3453864 5 5 version="1.0"> 6 6 7 7 8 8 <!-- This is a hack and isn't correct semantically. The beginpage tags must 9 9 be placed in the XML source only to render the final PDF output, and must … … 116 116 <xsl:param name="shade.verbatim" select="1"/> 117 117 118 <!-- Graphics in admonitions -->119 <xsl:param name="admon.graphics" select="1"/>120 <xsl:param name="admon.graphics.path"121 select="'/usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/'"/>122 123 <!-- Admonition block properties -->124 <xsl:template match="important|warning|caution">125 <xsl:choose>126 <xsl:when test="$admon.graphics != 0">127 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"128 space-before.maximum="0.8em" border-style="solid" border-width="1pt"129 border-color="#500" background-color="#FFFFE6">130 <xsl:call-template name="graphical.admonition"/>131 </fo:block>132 </xsl:when>133 <xsl:otherwise>134 <xsl:call-template name="nongraphical.admonition"/>135 </xsl:otherwise>136 </xsl:choose>137 </xsl:template>138 139 <xsl:template match="note|tip">140 <xsl:choose>141 <xsl:when test="$admon.graphics != 0">142 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"143 space-before.maximum="0.8em" border-style="solid" border-width="1pt"144 border-color="#E0E0E0" background-color="#FFFFE6">145 <xsl:call-template name="graphical.admonition"/>146 </fo:block>147 </xsl:when>148 <xsl:otherwise>149 <xsl:call-template name="nongraphical.admonition"/>150 </xsl:otherwise>151 </xsl:choose>152 </xsl:template>153 154 <!-- Admonitions text properties -->155 <xsl:attribute-set name="admonition.properties">156 <xsl:attribute name="margin-right">6pt</xsl:attribute>157 </xsl:attribute-set>158 159 <!-- Adding left space to the graphics and color to the titles -->160 <xsl:template name="graphical.admonition">161 <xsl:variable name="id">162 <xsl:call-template name="object.id"/>163 </xsl:variable>164 <xsl:variable name="graphic.width">165 <xsl:call-template name="admon.graphic.width"/>166 </xsl:variable>167 <fo:block id="{$id}">168 <fo:list-block provisional-distance-between-starts="{$graphic.width} + 18pt"169 provisional-label-separation="18pt" xsl:use-attribute-sets="list.block.spacing">170 <fo:list-item>171 <fo:list-item-label end-indent="label-end()">172 <fo:block margin-left="4pt">173 <fo:external-graphic width="auto" height="auto"174 content-width="{$graphic.width}" >175 <xsl:attribute name="src">176 <xsl:call-template name="admon.graphic"/>177 </xsl:attribute>178 </fo:external-graphic>179 </fo:block>180 </fo:list-item-label>181 <fo:list-item-body start-indent="body-start()">182 <xsl:if test="$admon.textlabel != 0 or title">183 <fo:block xsl:use-attribute-sets="admonition.title.properties">184 <xsl:if test="ancestor-or-self::important">185 <xsl:attribute name="color">#500</xsl:attribute>186 </xsl:if>187 <xsl:if test="ancestor-or-self::warning">188 <xsl:attribute name="color">#500</xsl:attribute>189 </xsl:if>190 <xsl:if test="ancestor-or-self::caution">191 <xsl:attribute name="color">#500</xsl:attribute>192 </xsl:if>193 <xsl:apply-templates select="." mode="object.title.markup"/>194 </fo:block>195 </xsl:if>196 <fo:block xsl:use-attribute-sets="admonition.properties">197 <xsl:apply-templates/>198 </fo:block>199 </fo:list-item-body>200 </fo:list-item>201 </fo:list-block>202 </fo:block>203 </xsl:template>204 205 118 <!-- How is rendered by default a variablelist --> 206 119 <xsl:param name="variablelist.as.blocks" select="1"/>
Note:
See TracChangeset
for help on using the changeset viewer.