[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Please Confirm that xsl:document instruction cannot have a document URI


Subject: Re: [xsl] Please Confirm that xsl:document instruction cannot have a document URI
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Aug 2013 17:25:16 +0100

On 28/08/2013 17:17, Eliot Kimber wrote:
I tried to find an answer to this question but neither Google nor MarkMail
revealed a definitive answer.

I have code that constructs a document using <xsl:document> and then passes
it to a 3rd-party function library that expects the input document to have a
URI so that it can then resolve relative URI references.

Based on my reading of the XSLT 2 spec and what I could find in my searches,
it appears that there is no standard way to define a document URI for
documents created using <xsl:document>.

This seems like a bit of an oversight in the spec, so I wanted to get
confirmation that my analysis is correct, that I cannot use <xsl:document>
alone as input to functions that expect to get a non-null document-uri()
value.

Thanks,

Eliot



The spec says

The base URI of the new document node is taken from the base URI of the xsl:document instruction.


so you should be able to go

<xsl:document xml:base="www.example.com">.....

David


-- google plus: https:/profiles.google.com/d.p.carlisle

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________



Current Thread
Keywords