sourceforge downloads requested by Oxygen 8.1

<oXygen/> general issues.
catterall
Posts: 51
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

sourceforge downloads requested by Oxygen 8.1

Post by catterall » Tue Mar 13, 2007 5:43 pm

MacOS 10.3.9, Docbook 4.5, Saxon 6.5.5, XSL style sheets 1.70.1, XEP 4.9, using Oxygen 8.1

Very occasionally I get messages like these during a transformation:

(sequence-master [master-name blank-draft]
[warning] Could not retrieve image from 'http://docbook.sourceforge.net/release/images/draft.png': java.net.ConnectException: Operation timed out)

(sequence-master [master-name front-odd-draft]
[warning] Could not retrieve image from 'http://docbook.sourceforge.net/release/images/draft.png': java.net.ConnectException: Connection refused)

(sequence-master [master-name back-first-draft]
[warning] Cannot reconnect to "http://docbook.sourceforge.net/release/images/draft.png": java.net.ConnectException: Operation timed out. A previously cached copy will be used.)

(sequence-master [master-name titlepage-first-draft]
[warning] Could not retrieve image from 'http://docbook.sourceforge.net/release/images/draft.png': java.net.SocketException: Connection reset)

These always cause long delays in FO transformations, but eventually they complete OK. Clearly this is when sourceforge is down for whatever reason, but I would like to avoid having to download anything during an FO transformation. How can I keep a local copy of whatever is needed and instruct use of local copies (in a catalog perhaps.) (Oxygen has local copies of DTD and XSL files of course.)

Could this be included in a future release of Oxygen?

Ron

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Tue Mar 13, 2007 6:53 pm

Hello,

A possible solution is to disable requesting the draft.png image as this image does not appear in the PDF output. You can do that by setting the draft.mode parameter of the Docbook XSLT stylesheet to the value 'no'.


Regards,
Sorin

catterall
Posts: 51
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

Post by catterall » Tue Mar 13, 2007 7:36 pm

Sorin

Many thanks. I also set a local URl for draft.png. Bob Stayton says this is the only external URl in the Docbook XSL stylesheet.

<xsl:parameter name="draft.watermark.image" select="'/Library/WebServer/Documents/_XML/_DocBook/draft.png'"/>
<xsl:parameter name="draft.mode parameter" select="'no'"/>

Ron

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Wed Mar 14, 2007 10:25 am

catterall wrote:<xsl:parameter name="draft.mode parameter" select="'no'"/>
In case you choose to disable the request for the draft watermark image the correct setting that you should use in your stylesheet is

Code: Select all

<xsl:parameter name="draft.mode" select="'no'"/>
Regards,
Sorin

Post Reply