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
Saxoinca


On 24 Feb 2014, at 20:39, Tom T <tomxsllist@hotmail.com> 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'))"/>
        
</xsl:result-document>     
 
</xsl:template>

return: 

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.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help