Author: mcbrown
Date: 2007-05-28 14:07:51 +0200 (Mon, 28 May 2007)
New Revision: 6596
Log:
Adding MNMAS KB add format
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-05-28 11:41:23 UTC (rev 6595)
+++ trunk/xsl.d/mysql-html.css 2007-05-28 12:07:51 UTC (rev 6596)
Changed blocks: 1, Lines Added: 12, Lines Deleted: 0; 533 bytes
@@ -112,7 +112,19 @@
border-left: 5px solid green;
padding-left: 5px;
}
+
+ p.mnmas b {
+ display:block;
+ color: #6633cc;
+ }
+ p.mnmas {
+ color: #6633cc;
+ border: 1px solid green;
+ border-left: 5px solid green;
+ padding-left: 5px;
+ }
+
p.mccge-warning b {
padding-right:0.5em;
}
Modified: trunk/xsl.d/mysql.formalpara.templates.fo.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.fo.xsl 2007-05-28 11:41:23 UTC (rev 6595)
+++ trunk/xsl.d/mysql.formalpara.templates.fo.xsl 2007-05-28 12:07:51 UTC (rev 6596)
Changed blocks: 2, Lines Added: 35, Lines Deleted: 0; 2049 bytes
@@ -3,6 +3,8 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
+<!-- MNMAS Ads -->
+
<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"
@@ -32,6 +34,39 @@
</fo:inline>
</xsl:template>
+<!-- MNMAS KB links -->
+
+ <xsl:template match="formalpara[@role='mnmas-kb']">
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="normal.para.spacing" border-color="#6633cc"
+ 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-kb']/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="#6633cc"
+ font-weight="bold" padding-top="1px" padding-end="1em">
+ <xsl:copy-of select="$titleStr"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="formalpara[@role='mnmas-kb']/para">
+ <fo:inline xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ font-family="Helvetica,Verdana,Arial,Sans Serif" color="#6633cc">
+ <xsl:apply-templates/>
+ </fo:inline>
+ </xsl:template>
+
+<!-- Deprecated Note -->
+
<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"
Modified: trunk/xsl.d/mysql.formalpara.templates.html.xsl
===================================================================
--- trunk/xsl.d/mysql.formalpara.templates.html.xsl 2007-05-28 11:41:23 UTC (rev 6595)
+++ trunk/xsl.d/mysql.formalpara.templates.html.xsl 2007-05-28 12:07:51 UTC (rev 6596)
Changed blocks: 1, Lines Added: 51, Lines Deleted: 23; 2716 bytes
@@ -1,34 +1,62 @@
<?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"/>
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
+<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: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-kb']/para">
+ <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="formalpara[@role='mnmas-kb']">
+ <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:variable>
+ </xsl:with-param>
+ </xsl:call-template>
+</xsl:template>
- <b>
- <xsl:copy-of select="$titleStr"/>
- </b>
- </xsl:template>
-
- <xsl:template match="formalpara[@role='mnmas']/para">
+<xsl:template match="formalpara[@role='mnmas-kb']/title">
+ <xsl:variable name="titleStr">
<xsl:apply-templates/>
- </xsl:template>
+ </xsl:variable>
+ <b>
+ <xsl:copy-of select="$titleStr"/>
+ </b>
+</xsl:template>
+
+<xsl:template match="formalpara[@role='mnmas-kb']/para">
+ <xsl:apply-templates/>
+</xsl:template>
+
<xsl:template match="formalpara[@role='depnote']">
<xsl:call-template name="paragraph">
<xsl:with-param name="class">
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r6596 - trunk/xsl.d | mcbrown | 28 May |