Open pvgenuchten opened 1 year ago
@pvgenuchten I guess this would be different than our existing XSLT support (which returns the output of the transformation). We could add a server.xsl
block in pycsw/core/server:Csw._write_response
that would inject a given XSL at the root of the output document. Keep in mind this would apply to single record XML output in any outputSchema
. Would this work for you?
I think would be compliant as the XSL would be ignored by client machinery, but triggered by those on a browser, say.
correct, this is a clientside transform (in the browser) and this would only apply to single record display (without the csw-response wrapper) would be great to have such a configuration option somewhere
At https://files.isric.org/projects/geopearl/250m/sl1_som3035_arable_250m.xml we applied an old xml convention to add a xsl reference to an xml so it is loaded in browsers as human readable
Colleagues asked if this convention could also be applied on xml output from pycsw, so when they download the xml, and open the xml locally, it would be displayed human readable.
For this to function we'd need to: