[xep-support] [SPAM] XslDriver Break for Image Patch

Karl Stubsjoen karl.stubsjoen at xportability.com
Tue Oct 2 16:20:26 PDT 2012

Some of you have requested a feature to our command line interface that will
allow you to abort the generation of a document when a broken image
reference occurs.  The attached patch will do just that and here are the
instructions to deploying and using the patch.


1)  copy patch to the lib subfolder for your RenderX installation under
program files directory.

2) Make the following edits to your xep.bat file one directory up from the
lib subfolder

   a) copy full path, including filename to the patched jar file you put in
lib subfolder

    b) add this path (no quotes) to the class path in the bat file, you must
append this to the very front of this line, so the path is inserted just
after: set cp=<insert patch path here>.... original CP text here ....

   c) save your bat file


Now would be a good time to test that you have updated the patch correctly
by just running any previously working document through the engine.  Once
you know that Xep is running as expected then give the
XslDriverBreakForImage patch a try.


To use the patch, you just call xep.bat with the switch:  -break_image, like


xep.bat -break_image -xml hammer.xml -xsl hammer.xsl

When a broken image is encountered the document creation will fail
immediately, and the resulting document being written to will be deleted
such as in the above example the hammer.pdf which had received some bytes of
information, that stream will be closed and the file deleted.


I've attached the path and my xep.bat file (renamed .txt so as to not cause
issues with virus protection)


Good luck!


Karl Stubsjoen

Xportability Professional Services











-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20121002/ea94306e/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xep.bat.txt
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20121002/ea94306e/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XslDriverBreakForImage.jar
Type: application/octet-stream
Size: 25301 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20121002/ea94306e/attachment-0001.obj>

More information about the Xep-support mailing list