You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mp...@apache.org on 2006/09/16 18:53:46 UTC

svn commit: r446896 - in /incubator/openjpa/trunk/openjpa-project: pom.xml src/doc/manual/manual-xhtml-chunk.xsl src/doc/manual/manual-xhtml.xsl

Author: mprudhom
Date: Sat Sep 16 09:53:45 2006
New Revision: 446896

URL: http://svn.apache.org/viewvc?view=rev&rev=446896
Log:
Download and cache the stylesheet file to reduce network chatter when building docs; fixed the image scaling so graphs are not shrunken in the resulting HTML document

Modified:
    incubator/openjpa/trunk/openjpa-project/pom.xml
    incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl
    incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml.xsl

Modified: incubator/openjpa/trunk/openjpa-project/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-project/pom.xml?view=diff&rev=446896&r1=446895&r2=446896
==============================================================================
--- incubator/openjpa/trunk/openjpa-project/pom.xml (original)
+++ incubator/openjpa/trunk/openjpa-project/pom.xml Sat Sep 16 09:53:45 2006
@@ -42,6 +42,16 @@
                          <!-- destdir="${project.build.directory}/site/manual" -->
                             <tasks>
                             <echo>Building docbook manual</echo>
+
+                            <!-- download stylesheets -->
+                            <property name="stylesheet" value="1.69.1.tar.bz2"/>
+                            <property name="stylesheet.dir" value="${project.basedir}/target/stylesheets"/>
+
+                            <mkdir dir="${stylesheet.dir}"/>
+                            <get src="http://docbook.sourceforge.net/release/xsl/${stylesheet}" usetimestamp="true" dest="${stylesheet.dir}/${stylesheet}"/>
+                            <untar src="${stylesheet.dir}/${stylesheet}" dest="${stylesheet.dir}" compression="bzip2" overwrite="false"/>
+
+
                             <style includes="**/manual.xml"
                                 force="true"
                                 basedir="${project.basedir}/src/doc/manual"
@@ -52,6 +62,8 @@
                                     <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
                                 </factory>
                             </style>
+
+                            <!--
                             <style includes="**/manual.xml"
                                 force="true"
                                 basedir="${project.basedir}/src/doc/manual"
@@ -62,6 +74,7 @@
                                     <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
                                 </factory>
                             </style>
+                            -->
                             </tasks>
                         </configuration>
                         <goals>

Modified: incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl?view=diff&rev=446896&r1=446895&r2=446896
==============================================================================
--- incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl (original)
+++ incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl Sat Sep 16 09:53:45 2006
@@ -1,7 +1,10 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
 
     <!-- docbook stylesheet customizations for openjpa manual -->
-	<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/html/chunk.xsl"/>
+	<!-- <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/html/chunk.xsl"/> -->
+    <!-- locally downloaded cache of stylesheets -->
+	<xsl:import href="../../../target/stylesheets/1.69.1/html/chunk.xsl"/>
+
 
 	<xsl:param name="html.stylesheet">../css/docbook.css</xsl:param>
 
@@ -20,5 +23,6 @@
 	<xsl:param name="section.autolabel" select="1"/>
 
 	<xsl:param name="use.id.as.filename" select="'1'"/>
+	<xsl:template name="process.image.attributes"/>
 </xsl:stylesheet>
 

Modified: incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml.xsl
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml.xsl?view=diff&rev=446896&r1=446895&r2=446896
==============================================================================
--- incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml.xsl (original)
+++ incubator/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml.xsl Sat Sep 16 09:53:45 2006
@@ -1,7 +1,9 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
 
     <!-- docbook stylesheet customizations for openjpa manual -->
-	<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/html/docbook.xsl"/>
+	<!-- <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/html/docbook.xsl"/> -->
+    <!-- locally downloaded cache of stylesheets -->
+	<xsl:import href="../../../target/stylesheets/1.69.1/html/docbook.xsl"/>
 
 	<xsl:param name="html.stylesheet">../css/docbook.css</xsl:param>
 
@@ -18,5 +20,6 @@
 	<xsl:param name="preface.autolabel" select="0"/>
 	<xsl:param name="qandadiv.autolabel" select="1"/>
 	<xsl:param name="section.autolabel" select="1"/>
+	<xsl:template name="process.image.attributes"/>
 </xsl:stylesheet>