Trying to parse an XSLT 2.0 stylesheet with Saxon HE, getting the following error:
Error on line 44 column 168
XTSE0165: I/O error reported by XML parser processing
http://www.loc.gov/standards/mods/inc/mimeType.xsl: Server returned HTTP response code:
403 for URL: http://www.loc.gov/standards/mods/inc/mimeType.xsl
This stylesheet contains a handful of remote resources it attempts to retrieve:
<xsl:include href="http://www.loc.gov/standards/mods/inc/dcmiType.xsl"/>
<xsl:include href="http://www.loc.gov/standards/mods/inc/mimeType.xsl"/>
<xsl:include href="http://www.loc.gov/standards/mods/inc/csdgm.xsl"/>
<xsl:include href="http://www.loc.gov/standards/mods/inc/forms.xsl"/>
<xsl:include href="http://www.loc.gov/standards/mods/inc/iso3166-1.xsl"/>
<xsl:include href="http://www.loc.gov/standards/mods/inc/iso639-2.xsl"/>
However, I have confirmed that all the links are valid and be retrieved via a browser or curl. Additionally, when I serve those files on localhost, and change the <xsl:include> accordingly, I do not get the 403 error.
My question, is there some kind Saxon or Java setting that is preventing Saxon HE from accessing resources not on localhost?
Many thanks in advance for any suggestions.
Update: I'm using pyjxslt as a server to perform the Saxon transformations, running at localhost:6767.