<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
One of our large collections has an archival object with an Index and items in the note section. This was causing the PDF generation to fail with a fatal error in the log:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<pre>ValidationException: Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified.</pre>
as the EAD XML contains <ref> elements which do not have an @target attribute<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I changed line 1106 in the linking section:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<!-- Linking elmenets --><br>
<xsl:template match="ead:ref"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
to <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<xsl:template match="ead:ref[@target]"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
to match only those ref tags with and @target attribute and this solved the problem.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This same collection had a number of digital objects with unpublished File URIs that had whitespace before and after the URI, probably from a copy and paste error or perhaps as an artifact of an import process.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When the staff PDF generation was run with the 'include unpublished' box ticked the process failed with an "illegal character" message listing the first offending URI</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I solved this by adding a normalize-space function to the XSLT wherever I found:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<fo:basic-link external-destination="url('{@*:href}')"</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ie to</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<fo:basic-link external-destination="url('{normalize-space(@*:href)}')"</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<p> </p>
<div style="font-size:11pt;font-family:Century Gothic">
<p><b>Neal Fitzgerald | Senior Specialist, Library Systems & Digital Preservation | Collection Development & Description
</b><br>
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000<br>
T +61 3 8664 7103 | nfitzgerald@slv.vic.gov.au<br>
<a href="http://slv.vic.gov.au" tabindex="0">slv.vic.gov.au</a></p>
<p><br>
<img alt="slv" src="http://www.slv.vic.gov.au/sites/default/files/email_signature/AOC_esignature.png"></p>
<table>
<tbody>
<tr>
<td colspan="3"><a href="https://www.slv.vic.gov.au/email_campaign" tabindex="0"><img src="https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9"></a></td>
<td> </td>
</tr>
<tr>
<td colspan="3"><img alt="follow us" src="https://www.slv.vic.gov.au/sites/default/files/email_signature/follow-us.png"></td>
</tr>
<tr>
<td>
<table>
<tbody>
<tr>
<td><a href="http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331" style="text-decoration:none;" tabindex="0"><img alt="SLV facebook" src="https://www.slv.vic.gov.au/sites/default/files/email_signature/facebook.png"></a></td>
<td><a href="http://twitter.com/Library_Vic" style="text-decoration:none;" tabindex="0"><img alt="SLV twitter" src="http://www.slv.vic.gov.au/sites/default/files/email_signature/twitter.png"></a></td>
<td><a href="http://www.youtube.com/user/statelibraryvictoria" style="text-decoration:none;" tabindex="0"><img alt="SLV youtube" src="https://www.slv.vic.gov.au/sites/default/files/email_signature/youtube.png"></a></td>
<td><a href="http://instagram.com/library_vic" style="text-decoration:none;" tabindex="0"><img alt="SLV instagram" src="https://secure.slv.vic.gov.au/cdn/email_signature/instagram.png"></a></td>
<td><img alt="Gold Winner 2018 RACV Victorian Tourism Awards" src="https://www.slv.vic.gov.au/sites/default/files/email_signature/racv-logo-small.png"></td>
<td width="30"> </td>
<td><img alt="MEA Awards 2018 National Winner" src="https://www.slv.vic.gov.au/sites/default/files/email_signature/mea-logo.jpg"></td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p> </p>
This message and any attachment is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly
prohibited. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. Thank you.
</body>
</html>