List:Commits« Previous MessageNext Message »
From:jon Date:March 13 2007 4:10am
Subject:svn commit - mysqldoc@docsrva: r5321 - trunk/xsl.d
View as plain text  
Author: jstephens
Date: 2007-03-13 05:10:38 +0100 (Tue, 13 Mar 2007)
New Revision: 5321

Log:

Added transforms and styles for MCCGE-specific warnings (Cluster API Guide)

Corrected invalid CSS in mysql-html.css.



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


Modified: trunk/xsl.d/mysql-html.css
===================================================================
--- trunk/xsl.d/mysql-html.css	2007-03-13 04:08:48 UTC (rev 5320)
+++ trunk/xsl.d/mysql-html.css	2007-03-13 04:10:38 UTC (rev 5321)
Changed blocks: 4, Lines Added: 25, Lines Deleted: 13; 1416 bytes

@@ -99,19 +99,31 @@
   border-left: 5px solid yellow;
   padding-left: 5px;
   margin-right: 1in;
-}
-
-p.mnmas b {
+  }
+  
+  p.mnmas b {
   display:block;
   color: green;
-}
-
-p.mnmas {
+  }
+  
+  p.mnmas {
   color: green;
   border: 1px solid green;
   border-left: 5px solid green;
   padding-left: 5px;
-}
+  }
+  
+  p.telco-warning b {
+  padding-right:0.5em;
+  }
+  
+  p.telco-warning {
+  color: blue;
+  border: 1px solid blue;
+  border-left: 5px solid blue;
+  padding-left: 5px;
+  background-color:yellow;
+  }
 
 p.depnote b {
   display:block;

@@ -330,7 +342,7 @@
 table.docs-document-list {
   border-style: none;
   font-size: 10px;
-  font-size: helvetica, arial, sans-serif; 
+  font-family: helvetica, arial, sans-serif; 
   border: none;
 }
 

@@ -341,14 +353,14 @@
 }
 
 table.docs-document-list tr.even {
-  valign: bottom; 
+  vertical-align: bottom; 
   background-color: #efefef;
   border: 0px;
 }
 
 table.docs-document-list tr.odd {
-  valign: bottom; 
-  backgroud-color: white;
+  vertical-align: bottom; 
+  background-color: white;
   border: 0px;
 }
 

@@ -358,8 +370,8 @@
 }
 
 table.docs-document-list td.title { 
-  align: left;
-  valign: bottom;
+  text-align: left;
+  vertical-align: bottom;
   border: 0px;
 }
 


Modified: trunk/xsl.d/mysql.formalpara.templates.fo.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.fo.xsl	2007-03-13 04:08:48 UTC (rev 5320)
+++ trunk/xsl.d/mysql.formalpara.templates.fo.xsl	2007-03-13 04:10:38 UTC (rev 5321)
Changed blocks: 1, Lines Added: 48, Lines Deleted: 0; 2204 bytes

@@ -60,4 +60,52 @@
       <xsl:apply-templates/>
     </fo:inline>
   </xsl:template>
+  
+  
+  
+  <xsl:template match="formalpara[@role='telco-warning']">
+    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      xsl:use-attribute-sets="normal.para.spacing" border-color="blue"
+      background-color="yellow" 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='telco-warning']/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="blue"
+      font-weight="bold" padding-top="1px" padding-end="1em">
+      <xsl:copy-of select="$titleStr"/>
+    </fo:block>
+  </xsl:template>
+  
+  <xsl:template match="formalpara[@role='telco-warning']/para">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      font-family="Helvetica,Verdana,Arial,Sans Serif" color="blue">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+  
+<!--  [js] Not sure which file this should actually go in? -->
+  
+  <xsl:template match="para[@role='telco-warning']">
+    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      xsl:use-attribute-sets="normal.para.spacing" border-color="blue" 
+      font-family="Helvetica,Verdana,Arial,Sans Serif" color="blue" 
+      background-color="yellow" 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:stylesheet>


Modified: trunk/xsl.d/mysql.formalpara.templates.html.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.html.xsl	2007-03-13 04:08:48 UTC (rev 5320)
+++ trunk/xsl.d/mysql.formalpara.templates.html.xsl	2007-03-13 04:10:38 UTC (rev 5321)
Changed blocks: 2, Lines Added: 56, Lines Deleted: 28; 2995 bytes

@@ -1,35 +1,35 @@
 <?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version='1.0'>
-
-<xsl:template match="formalpara[@role='mnmas']">
-  <xsl:call-template name="paragraph">
-    <xsl:with-param name="class">
-      <xsl:if test="@role and $para.propagates.style != 0">
-        <xsl:value-of select="@role"/>
-      </xsl:if>
-    </xsl:with-param>
-    <xsl:with-param name="content">
-      <xsl:call-template name="anchor"/>
+  version='1.0'>
+  
+  <xsl:template match="formalpara[@role='mnmas']">
+    <xsl:call-template name="paragraph">
+      <xsl:with-param name="class">
+        <xsl:if test="@role and $para.propagates.style != 0">
+          <xsl:value-of select="@role"/>
+        </xsl:if>
+      </xsl:with-param>
+      <xsl:with-param name="content">
+        <xsl:call-template name="anchor"/>
+        <xsl:apply-templates/>
+      </xsl:with-param>
+    </xsl:call-template>
+  </xsl:template>
+  
+  <xsl:template match="formalpara[@role='mnmas']/title">
+    <xsl:variable name="titleStr">
       <xsl:apply-templates/>
-    </xsl:with-param>
-  </xsl:call-template>
-</xsl:template>
+    </xsl:variable>
+    
+    <b>
+      <xsl:copy-of select="$titleStr"/>
+    </b>
+  </xsl:template>
+  
+  <xsl:template match="formalpara[@role='mnmas']/para">
+    <xsl:apply-templates/>
+  </xsl:template>
 
-<xsl:template match="formalpara[@role='mnmas']/title">
-  <xsl:variable name="titleStr">
-      <xsl:apply-templates/>
-  </xsl:variable>
-
-  <b>
-    <xsl:copy-of select="$titleStr"/>
-  </b>
-</xsl:template>
-
-<xsl:template match="formalpara[@role='mnmas']/para">
-  <xsl:apply-templates/>
-</xsl:template>
-
 <xsl:template match="formalpara[@role='depnote']">
   <xsl:call-template name="paragraph">
     <xsl:with-param name="class">

@@ -57,5 +57,33 @@
 <xsl:template match="formalpara[@role='depnote']/para">
   <xsl:apply-templates/>
 </xsl:template>
+  
+  <xsl:template match="formalpara[@role='telco-warning']">
+    <xsl:call-template name="paragraph">
+      <xsl:with-param name="class">
+        <xsl:if test="@role and $para.propagates.style != 0">
+          <xsl:value-of select="@role"/>
+        </xsl:if>
+      </xsl:with-param>
+      <xsl:with-param name="content">
+        <xsl:call-template name="anchor"/>
+        <xsl:apply-templates/>
+      </xsl:with-param>
+    </xsl:call-template>
+  </xsl:template>
+  
+  <xsl:template match="formalpara[@role='telco-warning']/title">
+    <xsl:variable name="titleStr">
+      <xsl:apply-templates/>
+    </xsl:variable>
+    
+    <b>
+      <xsl:copy-of select="$titleStr"/>
+    </b>
+  </xsl:template>
+  
+  <xsl:template match="formalpara[@role='telco-warning']/para">
+    <xsl:apply-templates/>
+  </xsl:template>
 
 </xsl:stylesheet>


Thread
svn commit - mysqldoc@docsrva: r5321 - trunk/xsl.djon13 Mar