<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hey, we are seeing this error when attempting to export a PDF of a collection:</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Generating PDF for UNA-USA Collection  
<div class="ContentPasted0">Internal error evaluating template rule  at line 123 in module file:/var/local/archivesspace/archivesspace/stylesheets/as-ead-pdf.xsl</div>
<div class="ContentPasted0">net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(net/sf/saxon/expr/instruct/TemplateRule.java:371)</div>
<div class="ContentPasted0">net.sf.saxon.trans.Mode.applyTemplates(net/sf/saxon/trans/Mode.java:533)</div>
<div class="ContentPasted0">net.sf.saxon.trans.XsltController.applyTemplates(net/sf/saxon/trans/XsltController.java:746)</div>
<div class="ContentPasted0">net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(net/sf/saxon/s9api/Xslt30Transformer.java:441)</div>
<div class="ContentPasted0">java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)</div>
<div class="ContentPasted0">org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:426)</div>
<div class="ContentPasted0">org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:293)</div>
<div class="ContentPasted0">org.jruby.RubyClass.finvokeWithRefinements(org/jruby/RubyClass.java:514)</div>
<div class="ContentPasted0">org.jruby.RubyBasicObject.send(org/jruby/RubyBasicObject.java:1755)</div>
<div class="ContentPasted0">org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2200)</div>
<div class="ContentPasted0">org.jruby.RubyKernel$INVOKER$s$send.call(org/jruby/RubyKernel$INVOKER$s$send.gen)</div>
<div class="ContentPasted0">RUBY.invocation_lambda(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/xslt/executable.rb:270)</div>
<div class="ContentPasted0">org.jruby.RubyProc.call(org/jruby/RubyProc.java:291)</div>
<div class="ContentPasted0">org.jruby.RubyProc$INVOKER$i$call.call(org/jruby/RubyProc$INVOKER$i$call.gen)</div>
<div class="ContentPasted0">RUBY.to_destination(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/xslt/invocation.rb:73)</div>
<div class="ContentPasted0">RUBY.to_fo(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:44)</div>
<div class="ContentPasted0">RUBY.to_pdf(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)</div>
<div class="ContentPasted0">RUBY.run(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:50)</div>
<div class="ContentPasted0">var.local.archivesspace.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.request_context.open(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)</div>
<div class="ContentPasted0">RUBY.run(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:13)</div>
<div class="ContentPasted0">var.local.archivesspace.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther31:run(var/local/archivesspace/archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)</div>
<div class="ContentPasted0">var.local.archivesspace.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)</div>
<div class="ContentPasted0">RUBY.start_background_thread(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)</div>
<div class="ContentPasted0">org.jruby.RubyProc.call(org/jruby/RubyProc.java:318)</div>
java.lang.Thread.run(java/lang/Thread.java:750)<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
And here is the section in the XSL file the error seems to be referring to:</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted0 ContentPasted1" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
 <!--  Start main page design and layout -->
<div class="ContentPasted1">    <xsl:template match="/"></div>
<div class="ContentPasted1">        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="12pt" font-family="KurintoText,KurintoTextJP,KurintoTextKR,KurintoTextSC,NotoSerif"></div>
<div class="ContentPasted1">            <!-- Set up page types and page layouts --></div>
<div class="ContentPasted1">            <fo:layout-master-set></div>
<div class="ContentPasted1">                <!-- Page master for Cover Page --></div>
<div class="ContentPasted1">                <fo:simple-page-master master-name="cover-page" page-width="8.5in" page-height="11in" margin="0.5in"></div>
<div class="ContentPasted1">                    <fo:region-body margin="0.5in 0.5in 1in 0.5in"/></div>
<div class="ContentPasted1">                    <fo:region-before extent="0.2in"/></div>
<div class="ContentPasted1">                    <fo:region-after extent="2in"/></div>
<div class="ContentPasted1">                </fo:simple-page-master></div>
<div class="ContentPasted1">                <!-- Page master for Table of Contents --></div>
<div class="ContentPasted1">                <fo:simple-page-master master-name="toc" page-width="8.5in" page-height="11in" margin="0.5in"></div>
<div class="ContentPasted1">                    <fo:region-body margin-top="0.25in" margin-bottom="0.25in"/></div>
<div class="ContentPasted1">                    <fo:region-before extent="0.5in"/></div>
<div class="ContentPasted1">                    <fo:region-after extent="0.2in"/></div>
<div class="ContentPasted1">                </fo:simple-page-master></div>
<div class="ContentPasted1">                <!-- Page master for Finding Aid Contents --></div>
<div class="ContentPasted1">                <fo:simple-page-master master-name="contents" page-width="8.5in" page-height="11in" margin="0.5in"></div>
<div class="ContentPasted1">                    <fo:region-body margin-top="0.25in" margin-bottom="0.25in"/></div>
<div class="ContentPasted1">                    <fo:region-before extent="0.5in"/></div>
<div class="ContentPasted1">                    <fo:region-after extent="0.2in"/></div>
<div class="ContentPasted1">                </fo:simple-page-master></div>
<div class="ContentPasted1">            </fo:layout-master-set></div>
<div class="ContentPasted1">            <!-- Builds PDF bookmarks for all major sections  --></div>
<div class="ContentPasted1">            <xsl:apply-templates select="/ead:ead/ead:archdesc" mode="bookmarks"/></div>
<div class="ContentPasted1">            <!-- The fo:page-sequence establishes headers, footers and the body of the page.--></div>
<div class="ContentPasted1">            <!-- Cover page layout --></div>
<div class="ContentPasted1">            <fo:page-sequence master-reference="cover-page"></div>
<div class="ContentPasted1">                <xsl:if test="/ead:ead/ead:eadheader/ead:filedesc/ead:publicationstmt"></div>
<div class="ContentPasted1">                  <fo:static-content flow-name="xsl-region-after"></div>
<div class="ContentPasted1">                        <xsl:apply-templates select="/ead:ead/ead:eadheader/ead:filedesc/ead:publicationstmt" mode="coverPage"/></div>
<div class="ContentPasted1">                    </fo:static-content></div>
<div class="ContentPasted1">               </xsl:if></div>
<div class="ContentPasted1">                <fo:flow flow-name="xsl-region-body"></div>
<div class="ContentPasted1">                    <xsl:apply-templates select="/ead:ead/ead:eadheader/ead:filedesc/ead:titlestmt" mode="coverPage"/></div>
<div class="ContentPasted1">                </fo:flow></div>
<div class="ContentPasted1">            </fo:page-sequence></div>
<div class="ContentPasted1">            <!-- Table of Contents layout --></div>
<div class="ContentPasted1">            <fo:page-sequence master-reference="toc"></div>
<div class="ContentPasted1">                <!-- Page header --></div>
<div class="ContentPasted1">                <fo:static-content flow-name="xsl-region-before" margin-top=".15in"></div>
<div class="ContentPasted1">                    <fo:block color="dimgray" font-size="10pt" text-align="center"></div>
<div class="ContentPasted1">                        <xsl:apply-templates select="ead:ead/ead:eadheader/ead:filedesc/ead:titlestmt" mode="pageHeader"/></div>
<div class="ContentPasted1">                    </fo:block></div>
<div class="ContentPasted1">                </fo:static-content></div>
<div class="ContentPasted1">                <!-- Page footer--></div>
<div class="ContentPasted1">                <fo:static-content flow-name="xsl-region-after"></div>
<div class="ContentPasted1">                    <fo:block text-align="center" color="dimgray"></div>
<div class="ContentPasted1">                        <xsl:text>- Page </xsl:text></div>
<div class="ContentPasted1">                        <fo:page-number/></div>
<div class="ContentPasted1">                        <xsl:text> -</xsl:text></div>
<div class="ContentPasted1">                    </fo:block></div>
<div class="ContentPasted1">                </fo:static-content></div>
<div class="ContentPasted1">                <!-- Content of page --></div>
<div class="ContentPasted1">                <fo:flow flow-name="xsl-region-body"></div>
<div class="ContentPasted1">                    <xsl:apply-templates select="/ead:ead/ead:archdesc" mode="toc"/></div>
<div class="ContentPasted1">                </fo:flow></div>
<div class="ContentPasted1">            </fo:page-sequence></div>
<div class="ContentPasted1">            <!-- All the rest --></div>
<div class="ContentPasted1">            <fo:page-sequence master-reference="contents"></div>
<div class="ContentPasted1">                <!-- Page header --></div>
                <fo:static-content flow-name="xsl-region-before" margin-top=".15in"><br>
</div>
<div class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
                 <fo:block color="dimgray" font-size="10pt" text-align="center">
<div class="ContentPasted2">                        <xsl:apply-templates select="ead:ead/ead:eadheader/ead:filedesc/ead:titlestmt" mode="pageHeader"/></div>
<div class="ContentPasted2">                    </fo:block></div>
<div class="ContentPasted2">                </fo:static-content></div>
<div class="ContentPasted2">                <!-- Page footer--></div>
<div class="ContentPasted2">                <fo:static-content flow-name="xsl-region-after"></div>
<div class="ContentPasted2">                    <fo:block text-align="center"></div>
<div class="ContentPasted2">                        <xsl:text>- Page </xsl:text></div>
<div class="ContentPasted2">                        <fo:page-number/></div>
<div class="ContentPasted2">                        <xsl:text>- </xsl:text></div>
<div class="ContentPasted2">                    </fo:block></div>
<div class="ContentPasted2">                </fo:static-content></div>
<div class="ContentPasted2">                <!-- Content of page --></div>
<div class="ContentPasted2">                <fo:flow flow-name="xsl-region-body"></div>
<div class="ContentPasted2">                    <xsl:apply-templates select="/ead:ead/ead:archdesc"/></div>
<div class="ContentPasted2">                </fo:flow></div>
<div class="ContentPasted2">            </fo:page-sequence></div>
<div class="ContentPasted2">        </fo:root></div>
<div class="ContentPasted2">    </xsl:template></div>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Unfortunately my XML/XSL knowledge is limited. I suspect that it may be related to the notes that Preservica adds which includes HTML code, but I'm not sure. Its one of the few things differentiating this collection from others which export successfully.</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Regards,</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof">
<div id="Signature">
<div>
<div></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<p style="text-align: start; font-size: 11pt; font-family: Calibri, sans-serif; margin: 0px; background-color: rgb(255, 255, 255);">
<span style="margin:0px; font-size:14pt">Zach Pelli</span></p>
<p style="text-align: start; font-size: 11pt; font-family: Calibri, sans-serif; margin: 0px; background-color: rgb(255, 255, 255);">
Digital Collections Infrastructure Developer</p>
<p style="text-align: start; font-size: 11pt; font-family: Calibri, sans-serif; margin: 0px; background-color: rgb(255, 255, 255);">
Seton Hall University Libraries</p>
<p style="text-align: start; font-size: 11pt; font-family: Calibri, sans-serif; margin: 0px; background-color: rgb(255, 255, 255);">
973.275.2046</p>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
</div>
</div>
</div>
</body>
</html>