<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">I’ve forked it at:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/sdm7g/ead2pdf" class="">https://github.com/sdm7g/ead2pdf</a></div><div class=""><br class=""></div><div class="">and made some changes. It’s working better but still not properly out of the jar file.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Usually, xslt includes are relative based on the base directory of the parent stylesheet,</div><div class="">so this would do it:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">diff --git a/lib/as-ead-pdf.xsl b/lib/as-ead-pdf.xsl</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">index 3954349..ccf041b 100644</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">--- a/lib/as-ead-pdf.xsl</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">+++ b/lib/as-ead-pdf.xsl</b></div><div style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);" class="">@@ -21,7 +21,7 @@</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> <xsl:output method="xml" encoding="utf-8" indent="yes"/></div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> <!-- Calls a stylesheet with local functions and lookup lists for languages and subject authorities --></div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- <xsl:include href="./lib/as-helper-functions.xsl"/> </div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ <xsl:include href="as-helper-functions.xsl"/><span style="font-variant-ligatures: no-common-ligatures; color: #000000; background-color: #991200" class=""> </span></div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> <xsl:strip-space elements="*"/></div></div><div class=""><br class=""></div><div class="">However, the XSLT is being passed in as a stream, so it doesn’t have a context for the xslt file path,</div><div class="">and is falling back to the user’s PWD. </div><div class=""><br class=""></div><div class="">I added this to pass the context in with system_id:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">diff --git a/lib/AS_fop.rb b/lib/AS_fop.rb</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">index 1f97f0e..8b72e3a 100644</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">--- a/lib/AS_fop.rb</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">+++ b/lib/AS_fop.rb</b></div><div style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);" class="">@@ -22,6 +22,7 @@<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> class ASFop</span></div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> attr_accessor :source</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> attr_accessor :xslt</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ attr_accessor :file</div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> def initialize(source, output= nil, xslt = nil )</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> abort("#{source} not found") unless File.exists?(source) </div><div style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);" class="">@@ -30,11 +31,12 @@<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> class ASFop</span></div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @source = source </div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @xml = IO.read(source)</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @output = output.nil? ? "#{source}.pdf" : output </div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ @file = xslt</div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> if xslt.nil?</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- file =File.join( File.dirname(__FILE__), '../lib' ,'as-ead-pdf.xsl').gsub("\\", "/" ) </div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- @xslt = File.read( file, system_id: file )</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- else </div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ @file =File.join( File.dirname(__FILE__) ,'as-ead-pdf.xsl').gsub("\\", "/" )<span style="font-variant-ligatures: no-common-ligatures; color: #000000; background-color: #991200" class=""> </span></div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ @xslt = File.read( file, system_id: @file )</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ else</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @xslt = File.read( xslt ) </div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> end</div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);" class="">@@ -42,7 +44,7 @@<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> class ASFop</span></div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> def to_fo</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- transformer = Saxon.XSLT(@xslt)</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ transformer = Saxon.XSLT(@xslt, system_id: @file )</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> transformer.transform(Saxon.XML(@xml)).to_s</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> end</div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">And it runs correctly if I run calling jruby on bin/ead2pdf-main.rb. </div><div class=""><br class=""></div><div class="">However, after packaging up the jar file with warble, I get errors running it out of the jar. </div><div class=""><br class=""></div><div class="">This gives me an error: </div><div class=""><br class=""></div><div class=""><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> java -jar ../sdm7g/ead2pdf/ead2pdf.jar prod/local-exp/22-MSS12838.xml 22.pdf </div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">prod/local-exp/22-MSS12838.xml</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">22.pdf</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">Error at /xsl:stylesheet/xsl:include[1] in as-ead-pdf.xsl:</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> XTSE0165: I/O error reported by XML parser processing</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> file:/projects/Archivespace/sdm7g/ead2pdf/ead2pdf.jar!/ead2pdf/lib/as-helper-functions.xsl: /projects/Archivespace/sdm7g/ead2pdf/ead2pdf.jar!/ead2pdf/lib/as-helper-functions.xsl (No such file or directory)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">As does this, passing the stylesheet explicitly:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #692828" class=""><b class="">work$</b></span> java -jar ../sdm7g/ead2pdf/ead2pdf.jar prod/local-exp/22-MSS12838.xml 22.pdf 'file:/projects/Archivespace/sdm7g/ead2pdf/ead2pdf.jar!/ead2pdf/lib/as-ead-pdf.xsl' </div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">prod/local-exp/22-MSS12838.xml</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">22.pdf</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">Error at /xsl:stylesheet/xsl:include[1] in as-ead-pdf.xsl:</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> XTSE0165: I/O error reported by XML parser processing</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> file:/projects/Archivespace/sdm7g/ead2pdf/ead2pdf.jar!/ead2pdf/lib/as-helper-functions.xsl: /projects/Archivespace/sdm7g/ead2pdf/ead2pdf.jar!/ead2pdf/lib/as-helper-functions.xsl (No such file or directory)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">But prefixing that URL referencing the jar file with “jar:” works </div><div class="">( except that now it’s finding the include, but not finding the .png logo ):</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #692828" class=""><b class="">work$</b></span> java -jar ../sdm7g/ead2pdf/ead2pdf.jar prod/local-exp/22-MSS12838.xml 22.pdf 'jar:file:/projects/Archivespace/sdm7g/ead2pdf/ead2pdf.jar!/ead2pdf/lib/as-ead-pdf.xsl' </div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">prod/local-exp/22-MSS12838.xml</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">22.pdf</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">Aug 04, 2015 2:57:05 PM org.apache.fop.events.LoggingEventListener processEvent</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">SEVERE: Image not found. URI: ./lib/archivesspace.small.png. (See position 74:55)</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">Aug 04, 2015 2:57:05 PM org.apache.fop.events.LoggingEventListener processEvent</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">INFO: Rendered page #1.</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">Aug 04, 2015 2:57:06 PM org.apache.fop.events.LoggingEventListener processEvent</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">INFO: Rendered page #2.</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Not quite sure how to fix this in the code yet…</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— Steve.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Aug 4, 2015, at 2:41 PM, Arnold, Hillel <<a href="mailto:harnold@rockarch.org" class="">harnold@rockarch.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><font face="Calibri,sans-serif" class="">Hi Chris,</font></div><div class=""><font face="Calibri,sans-serif" class="">I’m still having trouble running this when I’m not in the ead2pdf directory, as Steve points out below.</font></div><div style="font-family: Calibri, sans-serif; font-size: 14px;" class=""><div class=""><div class=""><br class=""></div><div class="">Hillel Arnold</div></div><div class="">Lead Digital Archivist</div><div class="">Rockefeller Archive Center</div></div></div><div style="font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Calibri, sans-serif;" class=""><br class=""></div><span id="OLK_SRC_BODY_SECTION" style="font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Calibri, sans-serif;" class=""><div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class=""><span style="font-weight: bold;" class="">From:<span class="Apple-converted-space"> </span></span>Chris Fitzpatrick <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" class="">Chris.Fitzpatrick@lyrasis.org</a>><br class=""><span style="font-weight: bold;" class="">Reply-To:<span class="Apple-converted-space"> </span></span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" class="">archivesspace_users_group@lyralists.lyrasis.org</a>><br class=""><span style="font-weight: bold;" class="">Date:<span class="Apple-converted-space"> </span></span>Tuesday, August 4, 2015 at 11:59 AM<br class=""><span style="font-weight: bold;" class="">To:<span class="Apple-converted-space"> </span></span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" class="">archivesspace_users_group@lyralists.lyrasis.org</a>><br class=""><span style="font-weight: bold;" class="">Subject:<span class="Apple-converted-space"> </span></span>Re: [Archivesspace_Users_Group] ead2pdf manual PDF creation?<br class=""></div><div class=""><br class=""></div><div class=""><div dir="ltr" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Yeah, I just updated the ead2pdf jar, with I think fixes this..</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">It's here:</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><a id="LPlnk909457" href="https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5" class="">https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5</a></div><div id="LPBorder_GT_14387039718180.05888031939542626" style="margin-top: 20px; margin-bottom: 20px; overflow: auto; width: 749px;" class=""><table id="LPContainer_14387039718160.5332441778840602" style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); width: 599px; background-color: rgb(255, 255, 255); position: relative; overflow: auto;" class=""><tbody class=""><tr valign="top" class=""><td colspan="1" id="ImageCell_14387039718160.5716056286889813" style="width: 140px; position: relative; display: table-cell; padding: 0px;" class=""><div id="LPImageContainer_14387039718160.13744651036971578" style="margin-top: 12px; background-color: rgb(255, 255, 255); height: auto; width: 140px; position: relative; display: table;" class=""><a target="_blank" href="https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5" id="LPImageAnchor_14387039718170.38766634137386036" style="display: table-cell; text-align: center;" class=""><img aria-label="Preview image with link selected. Double-tap to open the link." height="45" width="45" src="https://avatars2.githubusercontent.com/u/1311559?v=3&s=400" style="display: inline-block; margin-left: auto; margin-right: auto; max-width: 140px; max-height: 140px; height: 45px; width: 45px; border-width: 0px;" class=""></a></div></td><td class=""><div id="LPTitle_14387039718170.9075965120128151" style="top: 0px; margin-top: 8px; font-size: 21px; font-family: wf_segoe-ui_semilight, 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(51, 51, 51); margin-left: 14px; margin-right: 14px;" class="">Release 0.0.5 · archivesspace/ead2pdf · GitHub</div><div id="LPDescription_14387039718180.06666878610502291" style="margin-top: 8px; font-size: 13px; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(102, 102, 102); margin-left: 14px; margin-right: 14px;" class="">ead2pdf - ASpace EAD2PDF</div><div id="LPUrlContainer_14387039718180.26939277070105627" style="margin: 8px 14px 10px; height: 18px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;" class=""><a target="_blank" href="https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5" id="LPUrlAnchor_14387039718180.5690993462165346" style="font-size: 11px; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; text-decoration: none;" class="">Read more...</a></div></td></tr></tbody></table></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">b,chris.<span class="Apple-converted-space"> </span><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=""><div class="BodyFragment"><font size="2" class=""><div class="PlainText">Chris Fitzpatrick |<span class="Apple-converted-space"> </span><font size="2" class="">Developer, ArchivesSpace</font><br class="">Skype: chrisfitzpat | Phone: 918.236.6048<br class=""><a href="http://archivesspace.org/" class="">http://archivesspace.org/</a><br class=""></div></font></div></div></div><br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 734.015625px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri,sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span class="Apple-converted-space"> </span><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Steven Majewski <<a href="mailto:sdm7g@virginia.edu" class="">sdm7g@virginia.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Tuesday, August 4, 2015 5:51 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Archivesspace_Users_Group] ead2pdf manual PDF creation?</font><div class=""> </div></div><div class=""><div class=""><br class=""></div><div class="">I ran the conversion on a random exported EAD file and got the same error. </div><div class="">The rest of the message shows it couldn’t find as-helper-functions.xsl </div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"><span class="" style="color: rgb(105, 40, 40);"><b class="">work$</b></span><span class="Apple-converted-space"> </span>java -jar ../ead2pdf/ead2pdf.jar prod/local-exp/22-MSS12838.xml 22.pdf</div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);">prod/local-exp/22-MSS12838.xml</div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);">22.pdf</div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);">Error at /xsl:stylesheet/xsl:include[1] </div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"> XTSE0165: I/O error reported by XML parser processing</div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"> file:/projects/Archivespace/work/lib/as-helper-functions.xsl:</div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"> /projects/Archivespace/work/lib/as-helper-functions.xsl (No such file or directory)</div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);">NoMethodError: undefined method `rewind' for nil:NilClass</div></div><div class=""><br class=""></div><div class="">It looks like there’s a path dependency on finding that file:</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"><span class="" style="color: rgb(105, 40, 40);"><b class="">ead2pdf$</b></span><span class="Apple-converted-space"> </span>ack as-helper-functions</div><div class="" style="margin: 0px; color: rgb(1, 149, 0); background-color: rgb(212, 192, 172);"><b class="">lib/as-ead-pdf.xsl</b></div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"><span class="" style="color: rgb(134, 136, 0);"><b class="">24</b></span>: <xsl:include href="./lib/<span class="" style="background-color: rgb(153, 153, 0);">as-helper-functions</span>.xsl"/> </div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172); min-height: 16px;"><br class=""></div><div class="" style="margin: 0px; color: rgb(1, 149, 0); background-color: rgb(212, 192, 172);"><b class="">lib/AS_fop.rb</b></div><div class="" style="margin: 0px; background-color: rgb(212, 192, 172);"><span class="" style="color: rgb(134, 136, 0);"><b class="">36</b></span>: # @xslt.gsub!('<xsl:include href="<span class="" style="background-color: rgb(153, 153, 0);">as-helper-functions</span>.xsl"/>', "<xsl:include href='#{File.join(File.dirname(__FILE__), '../lib', '<span class="" style="background-color: rgb(153, 153, 0);">as-helper-functions</span>.xsl')}'/>" ) </div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">When I cd into the ead2pdf directory and run the same transform, it runs without error. </div><div class=""><br class=""></div><div class="">[ file path is: ead2pdf/lib/as-helper-functions.xsl ] </div><div class=""><br class=""></div><div class="">— Steve. </div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Aug 3, 2015, at 11:38 AM, Galligan, Patrick <<a href="mailto:PGalligan@rockarch.org" class="">PGalligan@rockarch.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Hey,</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"> </div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">We’re trying to set up a workflow where we automatically generate PDF copies of finding aids from our EAD. Rather than set up two API calls (one to export updated EAD and one to download updated PDF), we wanted to use the ead2pdf.jar to run through and create PDF files.</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"> </div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">However, when trying to run it from our dev server, I’m getting the following error:</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"> </div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">NoMethodError: undefined method `rewind' for nil:NilClass</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"> </div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Any idea what could be causing that?</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"> </div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Patrick Galligan</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Rockefeller Archive Center</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Assistant Digital Archivist</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">914-366-6386</div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"> </div></div><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">_______________________________________________</span><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">Archivesspace_Users_Group mailing list</span><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="" style="color: purple; text-decoration: underline; font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" class="" style="color: purple; text-decoration: underline; font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></div></blockquote></div><br class=""></div></div></div></div></div></span><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Archivesspace_Users_Group mailing list</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a></span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span></div></blockquote></div><br class=""></body></html>