The URI passed to doc() is resolved relative to the stylesheet, not the HTML page, so I think you need to determine what the base URI of the stylesheet is.

If you want to resolve a URI relative to the HTML page, you can do that using resolve-uri().

Michael Kay

On 24 Feb 2014, at 20:39, Tom T <> wrote:

Why does document-uri in the following:

<xsl:template match="/">
<xsl:result-document href="#indh" method="ixsl:replace-content">
<xsl:value-of select="document-uri(doc('/p/s?t=šs'))"/>


http://localhost:8003/t/s.xsl?7/..//p/s/?t=šs in the HTML output rather than:

http://localhost:8003/p/s/?t=šs ?

Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
saxon-help mailing list archived at