xsl:include with remote href (http)

Here should go questions about transforming XML with XSLT and FOP.
sgottlieb
Posts: 4
Joined: Wed Mar 28, 2007 9:53 pm

xsl:include with remote href (http)

Post 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
sgottlieb
Posts: 4
Joined: Wed Mar 28, 2007 9:53 pm

Re: xsl:include with remote href (http)

Post 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!
Post Reply