List:Commits« Previous MessageNext Message »
From:mcbrown Date:January 31 2007 4:26pm
Subject:svn commit - mysqldoc@docsrva: r4705 - trunk/xsl.d
View as plain text  
Author: mcbrown
Date: 2007-01-31 16:25:59 +0100 (Wed, 31 Jan 2007)
New Revision: 4705

Log:
Adding 'depnote' specification to formatting



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-01-31 14:56:12 UTC (rev 4704)
+++ trunk/xsl.d/mysql-html.css	2007-01-31 15:25:59 UTC (rev 4705)
Changed blocks: 1, Lines Added: 12, Lines Deleted: 0; 479 bytes

@@ -107,6 +107,18 @@
   padding-left: 5px;
 }
 
+p.depnote b {
+  display:block;
+  color: red;
+}
+
+p.depnote {
+  color: red;
+  border: 1px solid red;
+  border-left: 5px solid red;
+  padding-left: 5px;
+}
+
 div.warning h3, div.note h3{
   font-size: 90%;
 }


Modified: trunk/xsl.d/mysql.formalpara.templates.fo.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.fo.xsl	2007-01-31 14:56:12 UTC (rev 4704)
+++ trunk/xsl.d/mysql.formalpara.templates.fo.xsl	2007-01-31 15:25:59 UTC (rev 4705)
Changed blocks: 1, Lines Added: 29, Lines Deleted: 0; 1502 bytes

@@ -31,4 +31,33 @@
       <xsl:apply-templates/>
     </fo:inline>
   </xsl:template>
+
+  <xsl:template match="formalpara[@role='depnote']">
+    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      xsl:use-attribute-sets="normal.para.spacing" border-color="red"
+      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='depnote']/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="red"
+      font-weight="bold" padding-top="1px" padding-end="1em">
+      <xsl:copy-of select="$titleStr"/>
+    </fo:block>
+  </xsl:template>
+
+  <xsl:template match="formalpara[@role='depnote']/para">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+      font-family="Helvetica,Verdana,Arial,Sans Serif" color="red">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
 </xsl:stylesheet>


Modified: trunk/xsl.d/mysql.formalpara.templates.html.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.html.xsl	2007-01-31 14:56:12 UTC (rev 4704)
+++ trunk/xsl.d/mysql.formalpara.templates.html.xsl	2007-01-31 15:25:59 UTC (rev 4705)
Changed blocks: 2, Lines Added: 30, Lines Deleted: 2; 1309 bytes

@@ -1,4 +1,4 @@
-<?xml version='1.0'?>
+><?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version='1.0'>
 

@@ -30,4 +30,32 @@
   <xsl:apply-templates/>
 </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+<xsl:template match="formalpara[@role='depnote']">
+  <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='depnote']/title">
+  <xsl:variable name="titleStr">
+      <xsl:apply-templates/>
+  </xsl:variable>
+
+  <b>
+    <xsl:copy-of select="$titleStr"/>
+  </b>
+</xsl:template>
+
+<xsl:template match="formalpara[@role='depnote']/para">
+  <xsl:apply-templates/>
+</xsl:template>
+
+</xsl:stylesheet>


Thread
svn commit - mysqldoc@docsrva: r4705 - trunk/xsl.dmcbrown31 Jan