Page 1 of 1

xsl:include with remote href (http)

Posted: Thu Jul 03, 2008 7:43 pm
by sgottlieb
Hello,

I am trying to access a remote style sheet over http through an xsl:include element.

The code looks something like this:

<xsl:include href="http://client.local/core/1.0/common-callback.xslt"/>

I have configured my hosts file and created a virtual named host for client.local and I can get the .xslt file through a browser using this url.

However, get a java.io.FileNotFoundException when I run the transform.

The style sheet is in XSL 2.0 and I am running the Saxon 9 parser. I have tried other parsers but they don't seem to work either. Based on the documentation of xsl:include, it seems that this should be allowed.

Any ideas what I am doing wrong?

Thanks,

Seth

Re: xsl:include with remote href (http)

Posted: Thu Jul 03, 2008 8:27 pm
by sgottlieb
DOH! The issue was that the template that I was calling included another template that was local to itself! So sorry about that!