Conal-Tuohy / PROV-Solr-API-Tools

Provides additional tools for working with PROV's Solr API
Apache License 2.0
1 stars 0 forks source link

System document for Photo Wall and IIIF Collection service (email from Daniel Wilson) #19

Open asaletourneau opened 2 years ago

asaletourneau commented 2 years ago

Daniel Wilson wrote:

The command I used to test this was:

curl "https://apig-staging.cp.prov.vic.gov.au/search/query?tr=solr-to-iiif.xsl&wt=xslt&q=(text%3A%22fish%22)%20AND%20(iiif-manifest%3A(*))" -vk

solr-staging_test_iiif_xslt.txt

Conal-Tuohy commented 2 years ago

I believe this error is due to a known bug in the XSLT interpreter which Solr is using (Xalan). The bug causes the stylesheet to fail with a (bogus) "circular reference" error message in the case that a global variable in the XSLT includes within its value the definition of another variable.

https://issues.apache.org/jira/browse/XALANJ-2430

I've replaced the variable with a named template which I'm pretty confident will avoid the problem. The updated version of the stylesheet is here: https://raw.githubusercontent.com/Conal-Tuohy/PROV-Solr-API-Tools/main/solr/solr-to-iiif.xsl