浏览代码

Use html custom stylesheet

Carlos Sanchez 21 年之前
父节点
当前提交
16b7537db5
共有 2 个文件被更改,包括 10 次插入3 次删除
  1. 2 2
      docbook/styles/html/docbook.xsl
  2. 8 1
      maven.xml

+ 2 - 2
docbook/styles/html.xsl → docbook/styles/html/docbook.xsl

@@ -14,7 +14,7 @@
 -->
 
 <!DOCTYPE xsl:stylesheet [
-    <!ENTITY db_xsl_path        "../lib/docbook-xsl/">
+    <!ENTITY db_xsl_bak        "docbook-bak.xsl">
     <!ENTITY callout_gfx_path   "../images/callouts/">
     <!ENTITY admon_gfx_path     "../images/admons/">
 ]>
@@ -24,7 +24,7 @@
                 xmlns="http://www.w3.org/TR/xhtml1/transitional"
                 exclude-result-prefixes="#default">
                 
-<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
+<xsl:import href="&db_xsl_bak;"/>
 
 <!--###################################################
                      HTML Settings

+ 8 - 1
maven.xml

@@ -179,11 +179,18 @@
             <ant:unzip dest="${maven.build.dir}"
                 src="${pom.getDependencyPath('docbook:docbook-xsl')}"/>
                 
-            <!-- use a custom stylesheet -->
+            <!-- use a custom fo stylesheet -->
             <move file="${maven.sdocbook.stylesheets.dir}/fo/docbook.xsl"
                 tofile="${maven.sdocbook.stylesheets.dir}/fo/docbook-bak.xsl"/>
             <copy file="${maven.sdocbook.src.dir}/styles/fo/docbook.xsl"
                 todir="${maven.sdocbook.stylesheets.dir}/fo"/>
+
+            <!-- use a custom html stylesheet -->
+            <move file="${maven.sdocbook.stylesheets.dir}/html/docbook.xsl"
+                tofile="${maven.sdocbook.stylesheets.dir}/html/docbook-bak.xsl"/>
+            <copy file="${maven.sdocbook.src.dir}/styles/html/docbook.xsl"
+                todir="${maven.sdocbook.stylesheets.dir}/html"/>
+
             <copy todir="${maven.sdocbook.stylesheets.dir}">
                 <fileset dir="${maven.sdocbook.src.dir}/images"/>
             </copy>