]> granicus.if.org Git - docbook-dsssl/commitdiff
Added parameter for the annotation CSS
authorNorman Walsh <ndw@nwalsh.com>
Thu, 14 Jul 2005 17:04:25 +0000 (17:04 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 14 Jul 2005 17:04:25 +0000 (17:04 +0000)
xsl/html/docbook.xsl
xsl/html/param.ent
xsl/html/param.xweb
xsl/params/annotation.css.xml [new file with mode: 0644]

index 342514da06c7d9b53988a79b71152f9b31d2a526..4e6e347a3592b37ad0b9ffbd765baeddf2483696 100644 (file)
@@ -283,44 +283,7 @@ body { background-image: url('</xsl:text>
     </script>
 
     <style type="text/css">
-/* ======================================================================
-   Annotations
-*/
-
-div.annotation-list  { visibility: hidden;
-                     }
-
-div.annotation-nocss { position: absolute;
-                       visibility: hidden;
-                     }
-
-div.annotation-popup { position: absolute;
-                       z-index: 4;
-                       visibility: hidden;
-                       padding: 0px;
-                       margin: 2px;
-                       border-style: solid;
-                       border-width: 1px;
-                       width: 200px
-                     }
-
-div.annotation-title { padding: 1px;
-                       font-weight: bold;
-                       border-bottom-style: solid;
-                       border-bottom-width: 1px;
-                     }
-
-div.annotation-body  { padding: 2px;
-                     }
-
-div.annotation-body p { margin-top: 0px;
-                        padding-top: 0px;
-                      }
-
-div.annotation-close { position: absolute;
-                       top: 2px;
-                       right: 2px;
-                     }
+      <xsl:value-of select="$annotation.css"/>
     </style>
   </xsl:if>
 
index 8c8d70832408fa4b05b19f64b541adb5957954d8..a1f867f1453a4690cdab83783c2ec5e46e9d04ce 100644 (file)
 <!ENTITY annotation.js SYSTEM "../params/annotation.js.xml">
 <!ENTITY annotation.graphic.open SYSTEM "../params/annotation.graphic.open.xml">
 <!ENTITY annotation.graphic.close SYSTEM "../params/annotation.graphic.close.xml">
+<!ENTITY annotation.css SYSTEM "../params/annotation.css.xml">
index f76fd26bd89433016d1711d7dee44cfd9c0daab6..37bc78d9b60855882592c60e28ece0cab5a3c7d1 100644 (file)
@@ -272,6 +272,7 @@ stylesheet like this:</para>
 <reference><title>Annotations</title>
 &annotation.support;
 &annotation.js;
+&annotation.css;
 &annotation.graphic.open;
 &annotation.graphic.close;
 </reference>
@@ -438,6 +439,7 @@ around all these parameters.</para>
 <src:fragref linkend="admon.style.frag"/>
 <src:fragref linkend="admon.textlabel.frag"/>
 <src:fragref linkend="annotate.toc.frag"/>
+<src:fragref linkend="annotation.css.frag"/>
 <src:fragref linkend="annotation.js.frag"/>
 <src:fragref linkend="annotation.graphic.open.frag"/>
 <src:fragref linkend="annotation.graphic.close.frag"/>
diff --git a/xsl/params/annotation.css.xml b/xsl/params/annotation.css.xml
new file mode 100644 (file)
index 0000000..864ded7
--- /dev/null
@@ -0,0 +1,66 @@
+<refentry id="annotation.css">
+<refmeta>
+<refentrytitle>annotation.css</refentrytitle>
+<refmiscinfo role="type">boolean</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>annotation.css</refname>
+<refpurpose>Enable annotations?</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='annotation.css.frag'>
+<xsl:param name="annotation.css">
+/* ======================================================================
+   Annotations
+*/
+
+div.annotation-list  { visibility: hidden;
+                     }
+
+div.annotation-nocss { position: absolute;
+                       visibility: hidden;
+                     }
+
+div.annotation-popup { position: absolute;
+                       z-index: 4;
+                       visibility: hidden;
+                       padding: 0px;
+                       margin: 2px;
+                       border-style: solid;
+                       border-width: 1px;
+                       width: 200px;
+                      background-color: white;
+                     }
+
+div.annotation-title { padding: 1px;
+                       font-weight: bold;
+                       border-bottom-style: solid;
+                       border-bottom-width: 1px;
+                      color: white;
+                      background-color: black;
+                     }
+
+div.annotation-body  { padding: 2px;
+                     }
+
+div.annotation-body p { margin-top: 0px;
+                        padding-top: 0px;
+                      }
+
+div.annotation-close { position: absolute;
+                       top: 2px;
+                       right: 2px;
+                     }
+</xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>If <property>annotation.support</property> is enabled and the
+document contains <sgmltag>annotation</sgmltag>s, then the CSS in this
+parameter will be included in the document.</para>
+
+</refsect1>
+</refentry>