List:Commits« Previous MessageNext Message »
From:mcbrown Date:June 7 2007 4:13pm
Subject:svn commit - mysqldoc@docsrva: r6698 - trunk/xsl.d
View as plain text  
Author: mcbrown
Date: 2007-06-07 16:13:29 +0200 (Thu, 07 Jun 2007)
New Revision: 6698

Log:
Adding inline templates for FO/PDF (supports error* and gui* entities)
FO changes
CSS changes




Added:
   trunk/xsl.d/mysql.inline.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-06-07 13:04:52 UTC (rev 6697)
+++ trunk/xsl.d/mysql-fo.xsl	2007-06-07 14:13:29 UTC (rev 6698)
Changed blocks: 2, Lines Added: 1, Lines Deleted: 6; 825 bytes

@@ -18,6 +18,7 @@
   <!-- Import custom formalpara templates (used for special notices) -->
 
   <xsl:include href="mysql.formalpara.templates.fo.xsl"/>
+  <xsl:include href="mysql.inline.templates.fo.xsl"/>
 
   <xsl:include href="mysql.titlepage.templates.fo.xsl"/>
 

@@ -135,11 +136,5 @@
   <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:stylesheet>


Modified: trunk/xsl.d/mysql-html.css
===================================================================
--- trunk/xsl.d/mysql-html.css	2007-06-07 13:04:52 UTC (rev 6697)
+++ trunk/xsl.d/mysql-html.css	2007-06-07 14:13:29 UTC (rev 6698)
Changed blocks: 1, Lines Added: 23, Lines Deleted: 0; 647 bytes

@@ -83,6 +83,29 @@
   background-color:white;
 }
 
+.errorcode {
+  font-family: courier;
+  color: #5b3d23;
+}
+
+.errorname {
+  font-family: courier;
+  font-weight: bold;
+  color: #5b3d23;
+}
+
+.errortext {
+  font-family: courier;
+  color: #5b3d23;
+  font-variant: small-caps;
+}
+
+.errortype {
+  font-family: courier;
+  color: #5b3d23;
+  font-style: italic;
+}
+
 div.note {
   border-left: 5px solid black;
   padding-left: 5px;


Added: trunk/xsl.d/mysql.inline.templates.fo.xsl
===================================================================
--- trunk/xsl.d/mysql.inline.templates.fo.xsl	                        (rev 0)
+++ trunk/xsl.d/mysql.inline.templates.fo.xsl	2007-06-07 14:13:29 UTC (rev 6698)
Changed blocks: 1, Lines Added: 75, Lines Deleted: 0; 2604 bytes

@@ -0,0 +1,75 @@
+<?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="errorcode">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        xsl:use-attribute-sets="monospace.properties" 
+        color="#7b3d23">
+      <xsl:apply-templates/>
+    </fo:inline>
+</xsl:template>
+
+<xsl:template match="errorname">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        xsl:use-attribute-sets="monospace.properties" 
+        color="#7b3d23" font-weight="bold">
+      <xsl:apply-templates/>
+    </fo:inline>
+</xsl:template>
+
+<xsl:template match="errortext">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        xsl:use-attribute-sets="monospace.properties" 
+        color="#7b3d23" font-variant="small-caps">
+      <xsl:apply-templates/>
+    </fo:inline>
+</xsl:template>
+
+<xsl:template match="errortype">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        xsl:use-attribute-sets="monospace.properties" 
+        color="#7b3d23" font-style="italic">
+      <xsl:apply-templates/>
+    </fo:inline>
+</xsl:template>
+
+<xsl:template match="errortype">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        xsl:use-attribute-sets="monospace.properties" 
+        color="#7b3d23" font-style="italic">
+      <xsl:apply-templates/>
+    </fo:inline>
+</xsl:template>
+
+<xsl:template match="guibutton">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        border="1px" border-color="black"
+        background-color="#dddddd"
+        font-variant="small-caps">
+        <xsl:apply-templates/>
+        </fo:inline>
+</xsl:template>
+
+<xsl:template match="guilabel">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        border="1px" border-color="black"
+        background-color="#dddddd"
+        font-weight="bold"
+        font-variant="small-caps">
+        <xsl:apply-templates/>
+        </fo:inline>
+</xsl:template>
+
+<xsl:template match="guimenu">
+    <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+        border="1px" border-color="black"
+        background-color="#dddddd"
+        text-decoration="underline"
+        font-variant="small-caps">
+        <xsl:apply-templates/>
+        </fo:inline>
+</xsl:template>
+
+</xsl:stylesheet>


Thread
svn commit - mysqldoc@docsrva: r6698 - trunk/xsl.dmcbrown7 Jun