← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 111: Modified generate-xhtml goal to generate barebones HTML for inclusion in inline help module.

 

------------------------------------------------------------
revno: 111
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Sun 2010-02-28 12:44:32 +0200
message:
  Modified generate-xhtml goal to generate barebones HTML for inclusion in inline help module.
added:
  src/docbkx/en/resources/xsl/html-inline-help.xsl
modified:
  pom.xml


--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs

Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription.
=== modified file 'pom.xml'
--- pom.xml	2010-02-27 21:19:09 +0000
+++ pom.xml	2010-02-28 10:44:32 +0000
@@ -115,11 +115,7 @@
               <goal>generate-xhtml</goal>
             </goals>
             <configuration>
-              <htmlStylesheet>resources/css/docbook_bsd.css</htmlStylesheet>
-              <glossaryCollection>resources/glossary_en.xml</glossaryCollection>
-              <sectionAutolabel>1</sectionAutolabel>
-              <sectionLabelIncludesComponentLabel>1</sectionLabelIncludesComponentLabel>
-              <chunkedOutput>false</chunkedOutput>
+			<xhtmlCustomization>${docbook.source}/en/resources/xsl/html-inline-help.xsl</xhtmlCustomization>
               <postProcess>
                 <move file="target/docbkx/xhtml/dhis2_user_manual_en.xhtml" tofile="target/docbkx/xhtml/dhis2_user_manual_full.xhtml"/>
                 <copy todir="${docbook.target}/en/">

=== added file 'src/docbkx/en/resources/xsl/html-inline-help.xsl'
--- src/docbkx/en/resources/xsl/html-inline-help.xsl	1970-01-01 00:00:00 +0000
+++ src/docbkx/en/resources/xsl/html-inline-help.xsl	2010-02-28 10:44:32 +0000
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+   ====================================================================
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+   ====================================================================
+
+   This software consists of voluntary contributions made by many
+   individuals on behalf of the Apache Software Foundation.  For more
+   information on the Apache Software Foundation, please see
+   <http://www.apache.org />.
+   ====================================================================
+
+    Based on the XSL HTML configuration file for the Spring
+    Reference Documentation.
+    
+-->
+<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="urn:docbkx:stylesheet"/>
+
+    <!--###################################################
+                    HTML Settings
+   ################################################### -->
+
+
+
+
+    <!-- These extensions are required for table printing and other stuff -->
+    <xsl:param name="use.extensions">1</xsl:param>
+    <xsl:param name="tablecolumns.extension">0</xsl:param>
+    <xsl:param name="callout.extensions">1</xsl:param>
+    <xsl:param name="graphicsize.extension">0</xsl:param>
+
+    <!--###################################################
+                     Table Of Contents
+   ################################################### -->
+
+    <!-- Supress completely the TOC -->
+    <xsl:param name="generate.toc" select="0" /> 
+
+
+	
+    <!--###################################################
+                        Labels
+   ################################################### -->
+
+    <!-- Turn off all labels -->
+    <xsl:param name="chapter.autolabel">0</xsl:param>
+    <xsl:param name="section.autolabel" select="0"/>
+    <xsl:param name="section.label.includes.component.label" select="0"/>
+    <!--###################################################
+                        Supression of various elements by CSS
+   ################################################### -->
+<xsl:template name="user.head.content">
+	<style type="text/css">
+
+
+  div.screenshot { display: none; }
+  div.figure {display: none; }
+  div.legalnotice {display: none; }
+  div.mediaobject {display: none; } 
+	</style>
+  </xsl:template>
+
+
+
+</xsl:stylesheet>