Re: Fwd: [xsl] curly braces

Subject: Re: Fwd: [xsl] curly braces
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 20 Sep 2012 15:11:10 +0100
If doc('') fails then it's almost certainly because you compiled the
stylesheet without supplying a base URI: for example you supplied it as a
StreamSource or DOMSource with no SystemID. It could also happen because
your base URI changes within the stylesheet module, for example as a result
of using external entities or using xml:base.

Does this mean I could fix this by setting xml:base in the stylesheet?

If you know the URI of the stylesheet is U then you could set xml:base="U", but it would be simpler just to call doc('U') instead of doc('').

Michael Kay
Saxonica

Current Thread