svn commit: r40730 - projects/xml-tools/share/xsl

Gabor Kovesdan gabor at FreeBSD.org
Wed Jan 23 13:13:18 UTC 2013


Author: gabor
Date: Wed Jan 23 13:13:16 2013
New Revision: 40730
URL: http://svnweb.freebsd.org/changeset/doc/40730

Log:
  - Reorganize stylesheets for easier customization

Added:
  projects/xml-tools/share/xsl/freebsd-xhtml-chunk.xsl
     - copied, changed from r39637, projects/xml-tools/share/xsl/freebsd-html-chunk.xsl
  projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl
     - copied, changed from r39637, projects/xml-tools/share/xsl/freebsd.xsl
  projects/xml-tools/share/xsl/freebsd-xhtml.xsl
     - copied, changed from r39637, projects/xml-tools/share/xsl/freebsd-html.xsl
Deleted:
  projects/xml-tools/share/xsl/default.xsl
  projects/xml-tools/share/xsl/freebsd-html-chunk.xsl
  projects/xml-tools/share/xsl/freebsd-html.xsl
  projects/xml-tools/share/xsl/freebsd.xsl
Modified:
  projects/xml-tools/share/xsl/freebsd-fo.xsl

Modified: projects/xml-tools/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-fo.xsl	Wed Jan 23 13:05:57 2013	(r40729)
+++ projects/xml-tools/share/xsl/freebsd-fo.xsl	Wed Jan 23 13:13:16 2013	(r40730)
@@ -11,6 +11,9 @@
   <!-- Pull in the base stylesheets -->
   <xsl:import href="/usr/local/share/xsl/docbook/fo/docbook.xsl"/>
 
+  <!-- Include the common customizations -->
+  <xsl:include href="freebsd-common.xsl"/>
+
   <!-- Redefine variables, and replace templates as necessary here -->
 
   <xsl:param name="freebsd.output.print"
@@ -22,10 +25,6 @@
   <xsl:param name="freebsd.output.print.twoside"
              select="'0'"/>
 
-  <!-- Include the common stylesheets -->
-
-  <xsl:include href="freebsd-common.xsl"/>
-
   <!-- FO specific customisation goes here -->
 
   <xsl:param name="use.extensions" select="1"/>

Copied and modified: projects/xml-tools/share/xsl/freebsd-xhtml-chunk.xsl (from r39637, projects/xml-tools/share/xsl/freebsd-html-chunk.xsl)
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-html-chunk.xsl	Tue Oct  2 12:54:21 2012	(r39637, copy source)
+++ projects/xml-tools/share/xsl/freebsd-xhtml-chunk.xsl	Wed Jan 23 13:13:16 2013	(r40730)
@@ -8,10 +8,9 @@
                 exclude-result-prefixes="#default">
 
   <!-- Pull in the base stylesheets -->
-  <xsl:import href="/usr/local/share/xsl/docbook/html/chunk.xsl"/>
+  <xsl:import href="/usr/local/share/xsl/docbook/xhtml/chunk.xsl"/>
 
-  <!-- Redefine variables, and replace templates as necessary here -->
-
-  <xsl:include href="freebsd-common.xsl"/>
+  <!-- Pull in common XHTML customizations -->
+  <xsl:include href="freebsd-xhtml-common.xsl"/>
 </xsl:stylesheet>
 

Copied and modified: projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl (from r39637, projects/xml-tools/share/xsl/freebsd.xsl)
==============================================================================
--- projects/xml-tools/share/xsl/freebsd.xsl	Tue Oct  2 12:54:21 2012	(r39637, copy source)
+++ projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl	Wed Jan 23 13:13:16 2013	(r40730)
@@ -11,9 +11,32 @@
   <!-- XXX hardcoded path.  Very bad.  Should be turned in to a paramater -->
   <xsl:import href="/usr/local/share/xml/docbook/xsl/modular/html/docbook.xsl"/>
 
+  <!-- Include the common customizations -->
+  <xsl:include href="freebsd-common.xsl"/>
+
   <!-- Redefine variables, and replace templates as necessary here -->
+  <xsl:param name="freebsd.output.html" select="'0'"/>
+  <xsl:param name="freebsd.output.html.images" select="'0'"/>
+
+  <!-- HTML specific customisation goes here -->
+
+  <xsl:param name="html.stylesheet" select="'docbook.css'"/>
+  <xsl:param name="user.id.as.filename" select="'1'"/>
+  <xsl:param name="generate.legalnotice.link" select="'1'"/>
+  <xsl:param name="link.mailto.url" select="'doc at FreeBSD.org'"/>
+  <xsl:param name="callout.graphics.path" select="'./imagelib/callouts/'"/>
+
+  <xsl:template name="user.footer.content">
+    <p align="center"><small>This, and other documents, can be downloaded
+    from <a href="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a></small></p>
+
+    <p align="center"><small>For questions about FreeBSD, read the
+    <a href="http://www.FreeBSD.org/docs.html">documentation</a> before
+    contacting <<a href="mailto:questions at FreeBSD.org">questions at FreeBSD.org</a>>.<br/>
+    For questions about this documentation, e-mail <<a href="mailto:doc at FreeBSD.org">doc at FreeBSD.org</a>>.</small></p>
+  </xsl:template>
+
   <xsl:template match="hostid|username|groupname|devicename|maketarget|makevar">
     <xsl:call-template name="inline.monoseq"/>
   </xsl:template>
-
 </xsl:stylesheet>

Copied and modified: projects/xml-tools/share/xsl/freebsd-xhtml.xsl (from r39637, projects/xml-tools/share/xsl/freebsd-html.xsl)
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-html.xsl	Tue Oct  2 12:54:21 2012	(r39637, copy source)
+++ projects/xml-tools/share/xsl/freebsd-xhtml.xsl	Wed Jan 23 13:13:16 2013	(r40730)
@@ -8,28 +8,9 @@
                 exclude-result-prefixes="#default">
 
   <!-- Pull in the base stylesheets -->
-  <xsl:import href="/usr/local/share/xsl/docbook/html/docbook.xsl"/>
+  <xsl:import href="/usr/local/share/xsl/docbook/xhtml/docbook.xsl"/>
 
-  <!-- Redefine variables, and replace templates as necessary here -->
-  <xsl:param name="freebsd.output.html" select="'0'"/>
-  <xsl:param name="freebsd.output.html.images" select="'0'"/>
-
-  <!-- HTML specific customisation goes here -->
-
-  <xsl:param name="html.stylesheet" select="'docbook.css'"/>
-  <xsl:param name="user.id.as.filename" select="'1'"/>
-  <xsl:param name="generate.legalnotice.link" select="'1'"/>
-  <xsl:param name="link.mailto.url" select="'doc at FreeBSD.org'"/>
-  <xsl:param name="callout.graphics.path" select="'./imagelib/callouts/'"/>
-
-  <xsl:template name="user.footer.content">
-    <p align="center"><small>This, and other documents, can be downloaded
-    from <a href="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a></small></p>
-
-    <p align="center"><small>For questions about FreeBSD, read the
-    <a href="http://www.FreeBSD.org/docs.html">documentation</a> before
-    contacting <<a href="mailto:questions at FreeBSD.org">questions at FreeBSD.org</a>>.<br/>
-    For questions about this documentation, e-mail <<a href="mailto:doc at FreeBSD.org">doc at FreeBSD.org</a>>.</small></p>
-  </xsl:template>
+  <!-- Pull in common XHTML customizations -->
+  <xsl:include href="freebsd-xhtml-common.xsl"/>
 </xsl:stylesheet>
 


More information about the svn-doc-projects mailing list