This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

com.nwalsh.saxon.ImageIntrinsics getWidth() and X11window servers


I am using DocBook XSL stylesheets 1.52.2, saxon 6.4.4, and the saxon644.jar extensions. I build documentation (interactively and via cron) on both Mac OS X (Darwin) and Solaris 8 with use.extensions set to 1 (plus a host of other parameter settings). Since moving to 1.52.2, my cron builds on Solaris fail with the following message:

Error at xsl:value-of on line 199 of file:/devel/docbook/html/graphics.xsl:
Exception in extension function java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
Transformation failed: Run-time errors were reported

whenever a DocBook document containing the imagedata element is encountered.

No amount of setting of the DISPLAY variable in the cron environment will make this error go away. If I start an X11 desktop on the Solaris 8 machine directly and execute the build, everything is fine.

Looking at the extensions code, my guess is that the call to getDefaultToolkit() in the ImageIntrinsics code is returning X11 as the toolkit of choice, and this combined with the lack of an X11 display in the cron environment is subsequently leading to the error when the simg:getWidth() extension function is called.

This used to work with 1.4X versions of the XSL stylesheets (1.52.2 is the first 1.5X version that I've used) and continues to work under 1.52.2 and Darwin.

Any pointers are greatly appreciated.

Eric
--------------
Eric Bosch
Clinical DataFax Systems Inc.
Voice: 905.522.3282.x223
Fax: 905.522.7284
Email: mailto:eric@datafax.com
Web: http://www.datafax.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]