Hi list!
I have an XSL snippet that includes and imports some XSL files.
I pass this to xslt:transform and the includes and imports are resolved using the working directory where basex was started from.
On my server that was / and on my Windows development machine C:\Users\user\basex\bin. This was not what I expected.
Quick way to see the effect:
declare namespace xsl="http://www.w3.org/1999/XSL/Transform";
xslt:transform(<root><test/></root>, <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="test"><root><xsl:value-of select="static-base-uri()"/></root></xsl:template> </xsl:stylesheet>)
Perhaps in a future version it may be possible to set that to the directory the XQuery runs from or to be able to just specify what it should be.
Best regards
Omar Siam