[PATCH:xorg-sgml-doctools] Speed up ps/pdf output by not trying to fetch draft.png from web

Alan Coopersmith alan.coopersmith at oracle.com
Sun Nov 28 20:17:08 PST 2010


Force draft mode to "no" instead of default of "maybe" as discussed in
various posts in http://sources.redhat.com/ml/docbook-apps archives.

For those of us building behind firewalls, shaves approx. 3 minutes off
document creation for each set of documents by not waiting for download
of the draft.png watermark image from the docbook website to time out.

Also gets rid of these errors from xmlto:

Nov 28, 2010 8:10:04 PM org.apache.fop.apps.FOURIResolver resolve
SEVERE: Error with opening URL 'http://docbook.sourceforge.net/release/images/draft.png': Connection timed out

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 xorg.xsl |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/xorg.xsl b/xorg.xsl
index 0adcdf1..6184b4e 100644
--- a/xorg.xsl
+++ b/xorg.xsl
@@ -40,4 +40,10 @@ DEALINGS IN THE SOFTWARE.
 
   <!-- Index links should point to indexterm location, not start of section -->
   <xsl:param name="index.links.to.section" select="0"/>
+
+  <!--
+     Speed up ps & pdf creation by not creating pages with "draft" image,
+     thus not needing to wait for http fetch of draft.png from docbook website.
+    -->
+  <xsl:param name="draft.mode" select="no"/>
 </xsl:stylesheet>
-- 
1.7.3.2



More information about the xorg-devel mailing list