List:Commits« Previous MessageNext Message »
From:mcbrown Date:January 11 2007 2:35pm
Subject:svn commit - mysqldoc@docsrva: r4448 - trunk/xsl.d
View as plain text  
Author: mcbrown
Date: 2007-01-11 15:35:37 +0100 (Thu, 11 Jan 2007)
New Revision: 4448

Log:
Adding special MNMAS formatting for <formalpara> objects



Added:
   trunk/xsl.d/mysql.formalpara.templates.fo.xsl
Modified:
   trunk/xsl.d/mysql-fo.xsl
   trunk/xsl.d/mysql-html.css


Modified: trunk/xsl.d/mysql-fo.xsl
===================================================================
--- trunk/xsl.d/mysql-fo.xsl	2007-01-11 13:49:54 UTC (rev 4447)
+++ trunk/xsl.d/mysql-fo.xsl	2007-01-11 14:35:37 UTC (rev 4448)
Changed blocks: 1, Lines Added: 105, Lines Deleted: 97; 10227 bytes

@@ -13,122 +13,130 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:import href="docbook-xsl/fo/docbook.xsl" />
+  <xsl:import href="docbook-xsl/fo/docbook.xsl"/>
 
-<xsl:include href="mysql.titlepage.templates.fo.xsl" />
+  <!-- Import custom formalpara templates (used for special notices) -->
+  
+  <xsl:import href="mysql.formalpara.templates.fo.xsl"/>
+  
+  <xsl:include href="mysql.titlepage.templates.fo.xsl"/>
+ 
+  <xsl:template match="command">s
+    <xsl:call-template name="inline.monoseq"/>
+  </xsl:template>
+  <xsl:template match="guilabel">
+    <xsl:call-template name="inline.monoseq"/>
+  </xsl:template>
+  <xsl:template match="guibutton">
+    <xsl:call-template name="inline.monoseq"/>
+  </xsl:template>
+  
+  <xsl:param name="fop.extensions" select="1"/>
 
-<xsl:template match="command">
-  <xsl:call-template name="inline.monoseq"/>
-</xsl:template>
-<xsl:template match="guilabel">
-  <xsl:call-template name="inline.monoseq"/>
-</xsl:template>
-<xsl:template match="guibutton">
-  <xsl:call-template name="inline.monoseq"/>
-</xsl:template>
+  <xsl:param name="section.autolabel" select="1"/>
+  <xsl:param name="section.label.includes.component.label" select="1"/>
 
-<xsl:param name="fop.extensions" select="1"/>
+  <xsl:param name="page.margin.inner" select="'1in'"/>
+  <xsl:param name="page.margin.outer" select="'1in'"/>
+  <xsl:param name="draft.mode" select="no"/>
 
-<xsl:param name="section.autolabel" select="1"/>
-<xsl:param name="section.label.includes.component.label" select="1"/>
+  <xsl:param name="body.font.family">Times Roman</xsl:param>
+  <xsl:param name="body.font.master">10</xsl:param>
+  <xsl:param name="title.font.family">Helvetica,Verdana,Arial,Sans Serif</xsl:param>
+  <xsl:param name="monospace.font.family">Courier</xsl:param>
 
-<xsl:param name="page.margin.inner" select="'1in'"/>
-<xsl:param name="page.margin.outer" select="'1in'"/>
-<xsl:param name="draft.mode" select="no"/>
+  <xsl:attribute-set name="component.title.properties">
+    <xsl:attribute name="font-size">22pt</xsl:attribute>
+    <xsl:attribute name="font-weight">normal</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:param name="body.font.family">Times Roman</xsl:param>
-<xsl:param name="body.font.master">10</xsl:param>
-<xsl:param name="title.font.family">Helvetica,Verdana,Arial,Sans Serif</xsl:param>
-<xsl:param name="monospace.font.family">Courier</xsl:param>
+  <xsl:attribute-set name="section.title.level1.properties">
+    <xsl:attribute name="font-size">18pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="component.title.properties">
-  <xsl:attribute name="font-size">22pt</xsl:attribute>
-  <xsl:attribute name="font-weight">normal</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="section.title.level2.properties">
+    <xsl:attribute name="font-size">16pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="section.title.level1.properties">
-  <xsl:attribute name="font-size">18pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="section.title.level3.properties">
+    <xsl:attribute name="font-size">14pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="section.title.level2.properties">
-  <xsl:attribute name="font-size">16pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="section.title.level4.properties">
+    <xsl:attribute name="font-size">12pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="section.title.level3.properties">
-  <xsl:attribute name="font-size">14pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="section.title.level5.properties">
+    <xsl:attribute name="font-size">10pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="section.title.level4.properties">
-  <xsl:attribute name="font-size">12pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="section.title.level6.properties">
+    <xsl:attribute name="font-size">10pt</xsl:attribute>
+    <xsl:attribute name="font-weight">normal</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="section.title.level5.properties">
-  <xsl:attribute name="font-size">10pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="xref.properties">
+    <xsl:attribute name="color">blue</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="section.title.level6.properties">
-  <xsl:attribute name="font-size">10pt</xsl:attribute>
-  <xsl:attribute name="font-weight">normal</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="monospace.properties">
+    <xsl:attribute name="color">#026789</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="xref.properties">
-  <xsl:attribute name="color">blue</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="admonition.title.properties">
+    <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
+    <xsl:attribute name="font-family">Helvetica,Verdana,Arial,Sans Serif</xsl:attribute>
+    <xsl:attribute name="font-size">10pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+    <xsl:attribute name="margin-left">0.25in</xsl:attribute>
+    <xsl:attribute name="margin-right">0.25in</xsl:attribute>
+    <xsl:attribute name="border-left">5pt solid black</xsl:attribute>
+    <xsl:attribute name="padding-left">0.1in</xsl:attribute>
+  </xsl:attribute-set>
 
-  <xsl:attribute-set name="monospace.properties"><xsl:attribute name="color">#026789</xsl:attribute></xsl:attribute-set>
-  
-<xsl:attribute-set name="admonition.title.properties">
-  <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
-  <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
-  <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
-  <xsl:attribute name="font-family">Helvetica,Verdana,Arial,Sans Serif</xsl:attribute>
-  <xsl:attribute name="font-size">10pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-  <xsl:attribute name="margin-left">0.25in</xsl:attribute>
-  <xsl:attribute name="margin-right">0.25in</xsl:attribute>
-  <xsl:attribute name="border-left">5pt solid black</xsl:attribute>
-  <xsl:attribute name="padding-left">0.1in</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="admonition.properties">
+    <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
+    <xsl:attribute name="margin-left">0.25in</xsl:attribute>
+    <xsl:attribute name="margin-right">0.25in</xsl:attribute>
+    <xsl:attribute name="border-left">5px solid black</xsl:attribute>
+    <xsl:attribute name="padding-left">0.1in</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="admonition.properties">
-  <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
-  <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
-  <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
-  <xsl:attribute name="margin-left">0.25in</xsl:attribute>
-  <xsl:attribute name="margin-right">0.25in</xsl:attribute>
-  <xsl:attribute name="border-left">5px solid black</xsl:attribute>
-  <xsl:attribute name="padding-left">0.1in</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="formal.title.properties">
+    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
+    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
+    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+    <xsl:attribute name="font-family">Helvetica,Verdana,Arial,Sans Serif</xsl:attribute>
+    <xsl:attribute name="font-size">10pt</xsl:attribute>
+    <xsl:attribute name="font-weight">bold</xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="formal.title.properties">
-  <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
-  <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
-  <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
-  <xsl:attribute name="font-family">Helvetica,Verdana,Arial,Sans Serif</xsl:attribute>
-  <xsl:attribute name="font-size">10pt</xsl:attribute>
-  <xsl:attribute name="font-weight">bold</xsl:attribute>
-</xsl:attribute-set>
+  <xsl:attribute-set name="verbatim.properties">
+    <xsl:attribute name="background-color">#dddddd</xsl:attribute>
+    <xsl:attribute name="color">#000000</xsl:attribute>
+    <xsl:attribute name="padding">1px</xsl:attribute>
+    <xsl:attribute name="font-size">
+      <xsl:value-of select="$body.font.master * 0.8"/>
+      <xsl:text>pt</xsl:text>
+    </xsl:attribute>
+  </xsl:attribute-set>
 
-<xsl:attribute-set name="verbatim.properties">
-  <xsl:attribute name="background-color">#dddddd</xsl:attribute>
-  <xsl:attribute name="color">#000000</xsl:attribute>
-  <xsl:attribute name="padding">1px</xsl:attribute>
-  <xsl:attribute name="font-size">
-    <xsl:value-of select="$body.font.master * 0.8"></xsl:value-of>
-    <xsl:text>pt</xsl:text>
-  </xsl:attribute>
-</xsl:attribute-set>
 
-<xsl:attribute-set name="root.properties">
-  <xsl:attribute name="text-align">
-    <xsl:text>left</xsl:text>
-  </xsl:attribute>
-</xsl:attribute-set>
 
+  <xsl:attribute-set name="root.properties">
+    <xsl:attribute name="text-align">
+      <xsl:text>left</xsl:text>
+    </xsl:attribute>
+  </xsl:attribute-set>
 
+
 </xsl:stylesheet>


Modified: trunk/xsl.d/mysql-html.css
===================================================================
--- trunk/xsl.d/mysql-html.css	2007-01-11 13:49:54 UTC (rev 4447)
+++ trunk/xsl.d/mysql-html.css	2007-01-11 14:35:37 UTC (rev 4448)
Changed blocks: 1, Lines Added: 12, Lines Deleted: 0; 481 bytes

@@ -88,6 +88,18 @@
   margin-right: 1in;
 }
 
+p.mnmas b {
+  display:block;
+  color: green;
+}
+
+p.mnmas {
+  color: green;
+  border: 1px solid green;
+  border-left: 5px solid green;
+  padding-left: 5px;
+}
+
 div.warning h3, div.note h3{
   font-size: 90%;
 }


Added: trunk/xsl.d/mysql.formalpara.templates.fo.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.fo.xsl	                        (rev 0)
+++ trunk/xsl.d/mysql.formalpara.templates.fo.xsl	2007-01-11 14:35:37 UTC (rev 4448)
Changed blocks: 1, Lines Added: 34, Lines Deleted: 0; 1580 bytes

@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
+
+  <xsl:template match="formalpara[@role='mnmas']">
+    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      xsl:use-attribute-sets="normal.para.spacing" border-color="green"
+      border-style="solid" border-left-width="5px" border-top-width="0.1pt"
+      border-right-width="0.1pt" border-bottom-width="0.1pt"
+      margin-left="0.25in" margin-right="0.25in" padding-left="0.1in">
+      <xsl:apply-templates/>
+    </fo:block>
+  </xsl:template>
+
+  <xsl:template match="formalpara[@role='mnmas']/title">
+    <xsl:variable name="titleStr">
+      <xsl:apply-templates/>
+    </xsl:variable>
+
+    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      font-family="Helvetica,Verdana,Arial,Sans Serif" color="green"
+      font-weight="bold" padding-top="1px" padding-end="1em">
+      <xsl:copy-of select="$titleStr"/>
+    </fo:block>
+  </xsl:template>
+
+  <xsl:template match="formalpara[@role='mnmas']/para">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      font-family="Helvetica,Verdana,Arial,Sans Serif" color="green">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+</xsl:stylesheet>


Thread
svn commit - mysqldoc@docsrva: r4448 - trunk/xsl.dmcbrown11 Jan