]> granicus.if.org Git - docbook-dsssl/commitdiff
Stylesheet tweaks
authorNorman Walsh <ndw@nwalsh.com>
Thu, 27 Oct 2005 14:05:53 +0000 (14:05 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 27 Oct 2005 14:05:53 +0000 (14:05 +0000)
docbook/relaxng/docbook/spec/.cvsignore [new file with mode: 0644]
docbook/relaxng/docbook/spec/Makefile
docbook/relaxng/docbook/spec/fo.xsl [new file with mode: 0644]
docbook/relaxng/docbook/spec/html.xsl [new file with mode: 0644]

diff --git a/docbook/relaxng/docbook/spec/.cvsignore b/docbook/relaxng/docbook/spec/.cvsignore
new file mode 100644 (file)
index 0000000..462e2c3
--- /dev/null
@@ -0,0 +1,3 @@
+*.pdf
+*.html
+*.fo
index 2060cb86bd304ba16588cd0c5b077a59943535f7..021342159340658bc25e1d72924f6a58d5bed9d7 100644 (file)
@@ -1,6 +1,6 @@
 include ../../../../cvstools/Makefile.incl
 
-HTMLSTYLE=/projects/oasis/spectools/stylesheets/oasis-docbook-html.xsl
+HTMLSTYLE=html.xsl
 FOSTYLE=fo.xsl
 
 XSLPARAM=""
diff --git a/docbook/relaxng/docbook/spec/fo.xsl b/docbook/relaxng/docbook/spec/fo.xsl
new file mode 100644 (file)
index 0000000..095c84a
--- /dev/null
@@ -0,0 +1,42 @@
+<?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:import href="/projects/oasis/spectools/stylesheets/oasis-docbook-fo.xsl"/>
+
+<xsl:param name="draft.watermark.image"
+           select="'/sourceforge/docbook/xsl/images/draft.png'"/>
+
+<xsl:template match="pubdate" mode="titlepage.mode">
+  <fo:block keep-with-next="always"
+            font-size="18pt"
+            space-before="10pt"
+            space-after="8pt"
+            font-weight="bold"
+            font-family="{$title.font.family}">
+    <xsl:choose>
+      <xsl:when test="/*/@status">
+        <xsl:value-of select="/*/@status"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:text>???Unknown Status???</xsl:text>
+      </xsl:otherwise>
+    </xsl:choose>
+
+    <xsl:text>&#160;</xsl:text>
+
+    <xsl:if test="../productnumber">
+      <xsl:text>V</xsl:text>
+      <xsl:value-of select="../productnumber[1]"/>
+      <xsl:text>,&#160;</xsl:text>
+    </xsl:if>
+
+    <xsl:call-template name="datetime.format">
+      <xsl:with-param name="date" select="."/>
+      <xsl:with-param name="format" select="'d B Y'"/>
+    </xsl:call-template>
+  </fo:block>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/docbook/relaxng/docbook/spec/html.xsl b/docbook/relaxng/docbook/spec/html.xsl
new file mode 100644 (file)
index 0000000..97711fe
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0">
+
+<xsl:import href="/projects/oasis/spectools/stylesheets/oasis-docbook-html.xsl"/>
+
+<xsl:template match="pubdate" mode="titlepage.mode">
+  <h2>
+    <xsl:choose>
+      <xsl:when test="/*/@status">
+        <xsl:value-of select="/*/@status"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:text>???Unknown Status???</xsl:text>
+      </xsl:otherwise>
+    </xsl:choose>
+
+    <xsl:text>&#160;</xsl:text>
+
+    <xsl:if test="../productnumber">
+      <xsl:text>V</xsl:text>
+      <xsl:value-of select="../productnumber[1]"/>
+      <xsl:text>,&#160;</xsl:text>
+    </xsl:if>
+
+    <xsl:call-template name="datetime.format">
+      <xsl:with-param name="date" select="."/>
+      <xsl:with-param name="format" select="'d B Y'"/>
+    </xsl:call-template>
+  </h2>
+</xsl:template>
+
+</xsl:stylesheet>