]> granicus.if.org Git - docbook-dsssl/commitdiff
Add a switch so that they can omit the search tab. Fix the validate property so it...
authorDavid Cramer <david@thingbag.net>
Mon, 12 Jul 2010 20:49:12 +0000 (20:49 +0000)
committerDavid Cramer <david@thingbag.net>
Mon, 12 Jul 2010 20:49:12 +0000 (20:49 +0000)
xsl/webhelp/build.properties
xsl/webhelp/build.xml

index 0c62a35b259224b3eda46bfbdad65000f2807ff1..852ad1c3499dae97eecd61b804fd15cc5471db69 100755 (executable)
@@ -1,14 +1,25 @@
 input-xml=docsrc/readme.xml
 frameset.base.dir=doc
+
+# Modify this so that it points to your copy of the Saxon 6.5 jar.
 xslt-processor-classpath=c:/workhead/export/saxon/6.5/lib/saxon.jar
+
 # To use this catalog, make sure the resolver is in your classpath.
 # Download xml-commons-resolver from http://xml.apache.org/commons/dist/
 # and add it to your CLASSPATH. Then use the following property to point 
 # to your docbook xsl stylesheets' catalog
-#docbook-xsl-catalog=c:/gsoc2010/docbook-xsl-1.75.2/catalog.xml
 docbook-xsl-catalog=/media/DATA/ACADEMIC/GSOC/docbook/repository/docbook/trunk/maven/docbook-xsl/target/xsltmp/docbook-xsl-1.75.2/catalog.xml
+
+# If you wish to have the ant script validate the document before
+# building it, set this property to the location
+# of your DocBook DTD. The sample document is 
+# a DocBook 4.5 document and uncomment the line validate=true.
 docbookx.dtd=file:///media/DATA/ACADEMIC/GSOC/docbook/repository/docbook/trunk/defguide/en/schema/docbookx.dtd
 validate=true
+
+# Set this to true if you don't need a search tab.
+exclude.search.from.chunked.html=false
+
 #indexe-language is used to tell the search indexer which language the docbook is written.
 #This will be used to identify the correct stemmer, and punctuations that differs from language to language.
 #see the documentation for details. en=English, cn=Chinese, jp=Japanese etc. 
index e86d1aa832c992105becf01ef8fae85017ffc8aa..4ed4f47a8786c638bed063f323c4833b79787743 100755 (executable)
   <property environment="env"/>
   <property name="ant.jar" value="${env.ANT_HOME}/lib/ant.jar"/>
 
-  <target name="validate" if="validate">                            
+  <condition property="perform-validation">
+       <equals arg1="${validate}" arg2="true"/>
+  </condition>
+  <condition property="skip-search-indexing">
+       <equals arg1="${exclude.search.from.chunked.html}" arg2="true"/>
+  </condition>
+
+  <target name="validate" if="perform-validation">                            
        <xmlvalidate file="${input-xml}">
          <xmlcatalog refid="catalog"/>
        </xmlvalidate>
@@ -33,6 +40,7 @@
          <param name="exclude.search.from.chunked.html" expression="${exclude.search.from.chunked.html}" if="exclude.search.from.chunked.html"/>
          <param name="output_file_name" expression="${output_file_name}"/>
          <param name="frameset.base.dir" expression="${frameset.base.dir}" if="frameset.base.dir"/>
+         <param name="exclude.search.from.chunked.html" expression="${exclude.search.from.chunked.html}" if="exclude.search.from.chunked.html"/>
          <param name="indexer.language" expression="${indexer-language}" if="indexer-language"/>
        </xslt>
 
@@ -46,7 +54,7 @@
        </copy>
   </target>
 
-  <target name="index">
+  <target name="index" unless="skip-search-indexing">
 
        <path id="nw-cms.jar.path">
          <pathelement location="${ant.file.dir}/indexer/lib/nw-cms.jar" />