Customize XSL for YAZ and add CSS for it
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 16 Nov 2003 22:56:53 +0000 (22:56 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 16 Nov 2003 22:56:53 +0000 (22:56 +0000)
doc/Makefile.am
doc/yaz.css [new file with mode: 0644]
doc/yazhtml.xsl.in

index 7bc45ad..2c71662 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.49 2003-10-27 12:21:24 adam Exp $
+## $Id: Makefile.am,v 1.50 2003-11-16 22:56:53 adam Exp $
 
 docdir=$(datadir)/doc/@PACKAGE@
 
@@ -31,9 +31,9 @@ REFFILES=yaz-client-man.xml yaz-ztest-man.xml yaz-config-man.xml \
        yaz-marcdump-man.xml
 
 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl tkl.xsl xml.dcl id.eps \
-       apilayer.obj
+       apilayer.obj yaz.css
 
-doc_DATA = $(HTMLFILES) yaz.pdf id.png apilayer.png
+doc_DATA = $(HTMLFILES) yaz.pdf id.png apilayer.png yaz.css
 man_MANS = $(MANFILES)
 
 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(man_MANS) $(REFFILES) \
diff --git a/doc/yaz.css b/doc/yaz.css
new file mode 100644 (file)
index 0000000..0090156
--- /dev/null
@@ -0,0 +1,31 @@
+
+.author {
+       color: green;
+}
+
+.table table {
+       border-collapse;
+       border: 1px solid black;
+       border-spacing: 0;      
+       width: 92%;
+       margin-left: auto;
+       margin-right: auto;
+}
+
+.table th {
+       padding: 3px 6px;
+       border: 1px solid black;
+}
+.table td {
+       text-align: left;
+       padding: 3px 6px;
+}
+
+.screen, .synopsis, .programlisting {
+       margin-left: 4%;
+       margin-right: 4%;
+       padding: 4px;
+       border-style: solid;
+       border-width: 1px;
+       border-color: #bbbbbb;
+}
index 0bc5333..fb93005 100644 (file)
@@ -3,9 +3,15 @@
 
 <xsl:import href="@XSL_DIR@/htmlhelp/htmlhelp.xsl"/>
 
-<xsl:param name="suppress.navigation" select="0"/>
-<xsl:param name="use.id.as.filename" select="1"/>
-
+<xsl:template name="body.attributes">
+   <link rel="stylesheet" type="text/css" href="yaz.css"/>
+</xsl:template>
+<xsl:variable name="suppress.navigation">0</xsl:variable>
+<xsl:variable name="use.id.as.filename">1</xsl:variable>
+<xsl:variable name="generate.book.toc">1</xsl:variable>
+<xsl:variable name="toc.section.depth">3</xsl:variable>
+<xsl:variable name="generate.toc.section.depth">3</xsl:variable>
+<xsl:variable name="section.autolabel">1</xsl:variable>
 
 </xsl:stylesheet>