Support #4491
closedSaxon-JS cannot locate the document('/floorplan.svg') path relative to current web page
0%
Description
When I use the document() function in saxon-js to try to access a relative file path on the web server It cannot find the path as I expected and I need to put a full path in with the domain to make it work. I think this may be a bug or if not it would be a nice feature to add the context here!
I noticed this when I call a function requesting the path along the lines...
[...] <xsl:result-document href="#svg" method="ixsl:replace-content"> <xsl:copy-of select="foo:output-svg(.)"/> </xsl:result-document> [...]
The function then must have the full path using the function as follows:
<xsl:function name="foo:output-svg" expand-text="no">
<xsl:param name="content"/>
<xsl:apply-templates
mode="svg"
select="document('/floorplan.svg')"/>
</xsl:function>
Please register to edit this issue
Also available in: Atom PDF Tracking page