Revision: 1485
Author: sebastien.lelong
Date: Wed Nov 18 05:37:41 2009
Log: fix table width containing note in PDF format + remove yellow  
background in authorship block
http://code.google.com/p/jallib/source/detail?r=1485

Modified:
  /trunk/doc/dita/customization/demo/fo/Customization/fo/attrs/custom.xsl
  /trunk/doc/dita/customization/demo/fo/Customization/fo/xsl/custom.xsl

=======================================
--- /trunk/doc/dita/customization/demo/fo/Customization/fo/attrs/custom.xsl     
 
Fri Oct 30 08:55:29 2009
+++ /trunk/doc/dita/customization/demo/fo/Customization/fo/attrs/custom.xsl     
 
Wed Nov 18 05:37:41 2009
@@ -7,11 +7,15 @@
      <xsl:attribute-set name="prolog">
          <xsl:attribute name="start-indent">300pt</xsl:attribute>
          <xsl:attribute name="font-size"><xsl:value-of  
select="$default-font-size"/></xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <!--
          <xsl:attribute name="border-style">solid</xsl:attribute>
          <xsl:attribute name="border-color">black</xsl:attribute>
          <xsl:attribute name="border-width">thin</xsl:attribute>
-        <xsl:attribute name="text-align">right</xsl:attribute>
          <xsl:attribute name="background-color">#f0f0d0</xsl:attribute>
+        -->
+        <xsl:attribute name="color">#000037</xsl:attribute>
+        <xsl:attribute name="text-align">right</xsl:attribute>
          <xsl:attribute name="padding">6pt</xsl:attribute>
      </xsl:attribute-set>

@@ -57,4 +61,32 @@
          <xsl:attribute name="space-before">15pt</xsl:attribute>
          <xsl:attribute  
name="keep-with-next.within-column">always</xsl:attribute>
      </xsl:attribute-set>
+
+    <!-- mini toc within chapters -->
+    <xsl:attribute-set name="__toc__mini">
+        <xsl:attribute name="font-size">9pt</xsl:attribute>
+        <xsl:attribute name="font-family">Sans</xsl:attribute>
+        <xsl:attribute name="end-indent">5pt</xsl:attribute>
+    </xsl:attribute-set>
+
+    <xsl:attribute-set name="__toc__mini__table__column_1">
+        <xsl:attribute name="column-number">1</xsl:attribute>
+        <xsl:attribute name="column-width">25%</xsl:attribute>
+    </xsl:attribute-set>
+
+    <xsl:attribute-set name="__toc__mini__table__column_2">
+        <xsl:attribute name="column-number">2</xsl:attribute>
+        <xsl:attribute name="column-width">75%</xsl:attribute>
+    </xsl:attribute-set>
+
+    <xsl:attribute-set name="note__table__column_1">
+        <xsl:attribute name="column-number">1</xsl:attribute>
+        <xsl:attribute name="column-width">10%</xsl:attribute>
+    </xsl:attribute-set>
+
+    <xsl:attribute-set name="note__table__column_2">
+        <xsl:attribute name="column-number">2</xsl:attribute>
+        <xsl:attribute name="column-width">90%</xsl:attribute>
+    </xsl:attribute-set>
+
  </xsl:stylesheet>
=======================================
--- /trunk/doc/dita/customization/demo/fo/Customization/fo/xsl/custom.xsl       
 
Mon Nov  2 22:43:31 2009
+++ /trunk/doc/dita/customization/demo/fo/Customization/fo/xsl/custom.xsl       
 
Wed Nov 18 05:37:41 2009
@@ -64,5 +64,49 @@
          <xsl:apply-templates/>
      </xsl:template>

+    <!-- adjust note width -->
+    <xsl:template match="*[contains(@class,' topic/note ')]">
+        <xsl:variable name="noteType">
+            <xsl:choose>
+                <xsl:when test="@type">
+                    <xsl:value-of select="@type"/>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:value-of select="'note'"/>
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:variable name="noteImagePath">
+            <xsl:call-template name="insertVariable">
+                <xsl:with-param name="theVariableID"  
select="concat($noteType, ' Note Image Path')"/>
+            </xsl:call-template>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="not($noteImagePath = '')">
+                <fo:table xsl:use-attribute-sets="note__table">
+
+                    <!-- Seb: this is here... -->
+                    <fo:table-column  
xsl:use-attribute-sets="note__table__column_1"/>
+                    <fo:table-column  
xsl:use-attribute-sets="note__table__column_2"/>
+
+                    <fo:table-body>
+                        <fo:table-row>
+                                <fo:table-cell  
xsl:use-attribute-sets="note__image__entry">
+                                    <fo:block>
+                                        <fo:external-graphic  
src="url({concat($artworkPrefix, $noteImagePath)})"  
xsl:use-attribute-sets="image"/>
+                                    </fo:block>
+                                </fo:table-cell>
+                                <fo:table-cell  
xsl:use-attribute-sets="note__text__entry">
+                                    <xsl:call-template  
name="placeNoteContent"/>
+                                </fo:table-cell>
+                        </fo:table-row>
+                    </fo:table-body>
+                </fo:table>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:call-template name="placeNoteContent"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>

  </xsl:stylesheet>

--

You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at http://groups.google.com/group/jallib?hl=.


Reply via email to