Project

Profile

Help

Support #4491

closed

Saxon-JS cannot locate the document('/floorplan.svg') path relative to current web page

Added by Gary Cornelius about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2020-03-21
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
1.0
Fix Committed on JS Branch:
1.0
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

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