[Archivesspace_Users_Group] Changes to PDF export in 2.8?
Chris Mayo
mayoc at bc.edu
Mon Aug 17 15:03:20 EDT 2020
Hi Mark,
Thanks for the suggestion - I hadn't tried yet, but I can successfully run
the transform outside of Aspace using Oxygen (I don't know how to run XSL
from the command line). I'm not sure whether that obviates the question
about the files, but I've attached a sample EAD and the stylesheet (plus a
couple of sidecar files) here. It sounds like what's going on is that the
version of saxon bundled into Aspace has gotten stricter, and I'm not sure
what to do about that. It's fairly important for us to be able to output
PDFs directly from the application.
Best,
Chris
On Mon, Aug 17, 2020 at 1:49 PM Custer, Mark <mark.custer at yale.edu> wrote:
> Chris,
>
> No clue if it's related or not, but it looks like a gem that's utilized
> for XSLT transformations in ASpace was switched out recently (saxon-xslt ->
> saxon-rb). I wonder if the new gem (and/or new version of saxon) is more
> strict, and only now throwing an error because of that?
>
> In any event, have you tried running the transformations outside of
> ASpace? Either way, if you can share a sample EAD file that throws the
> error and a copy of the in-house ead-to-pdf stylesheet, I'd be curious to
> take a look. Not that I'm sure I can help, of course :)
>
> Mark
>
>
> ------------------------------
> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
> archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of
> Chris Mayo <mayoc at bc.edu>
> *Sent:* Monday, August 17, 2020 1:31 PM
> *To:* Archivesspace Users Group <
> archivesspace_users_group at lyralists.lyrasis.org>
> *Subject:* [Archivesspace_Users_Group] Changes to PDF export in 2.8?
>
> Hi all,
>
> We keep a modified in-house version of the ead-to-pdf stylesheet so that
> we can put out Finding Aids with our own branding and a few other changes.
> When we recently installed 2.8 on our test server, we discovered that the
> export to PDF job was failing with the following error info:
>
> "The context item for axis step ./ead is absent. Found while atomizing the
> first argument of fn:subst"
>
> Our production server is currently running on 2.6, and we had previously
> updated the test server to 2.7 without that upgrade breaking our
> stylesheet, so the issue appears to have been introduced between 2.7 and
> 2.8. As far as I can tell, the base code for the stylesheet didn't change
> between those versions, and while the error message looks like an Xpath
> problem, the EAD structure doesn't appear to have changed either.
>
> Has anyone else encountered problems with modified finding aid stylesheets
> in 2.8, or have any thoughts on what could be causing this error?
>
> Chris
>
> Chris Mayo
> Digital Production Librarian
> Boston College
> chris.mayo at bc.edu
> pronouns: they/them/theirs
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
--
Chris Mayo
Digital Production Librarian
Boston College
chris.mayo at bc.edu
pronouns: they/them/theirs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200817/06bfe23e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcaleer_ead.xml
Type: text/xml
Size: 648258 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200817/06bfe23e/attachment-0004.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: as-ead-pdf.xsl
Type: text/xml
Size: 105534 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200817/06bfe23e/attachment-0005.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: as-helper-functions.xsl
Type: text/xml
Size: 47271 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200817/06bfe23e/attachment-0006.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fop-config.xml
Type: text/xml
Size: 724 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200817/06bfe23e/attachment-0007.xml>
More information about the Archivesspace_Users_Group
mailing list