You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Peter Löffler <un...@rz.uni-karlsruhe.de> on 2001/05/10 23:53:32 UTC

URIResolver and document()

Got the following problem:

  <xsl:variable name="test" select="document('test.xhtml')/html"/>

When using this variable in the same stylesheet, my URIResolver
implementation's resolve method is not called. Instead I get a

  SystemId Unknown; Line 32; Column 35;
  Can not load requested doc: File "file:////path/to/current/dir/test.xhtml" not found.

message.

Inclusion of stylesheets (<xsl:include href="...">) works fine
(resolve method is called).

I've found some messages concerning URIResolver bugs in the mailing list
archives, but none to mention this asymmetric behaviour of document()
vs. xsl:include

Xalan version is 2.0.1

Ciao,
	Peter