You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by chris markiewicz <cm...@commnav.com> on 2001/02/02 17:38:07 UTC

xsl:include - url vs file?

hello

i have an xsl page that includes a few other xsl pages:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="templates/pidgettitlebar.xsl"/>
<xsl:include href="templates/stylesheet.xsl"/>
<xsl:output method="html" />
<xsl:template match="/">
<HTML>
<head>
etc etc...

however i get the following error on this page:

org.apache.xalan.xslt.XSLProcessorException: File
"file:/home/cmarkiew/templates/pidgettitlebar.xsl" not found.

so the question is: why does the xslt engine sometimes try to grab this as a
file instead of a url?  how can i change this?  note that that file does
exist at that path, but i want it to grab the file through the web server.

i have had this problem before...it seems like it depends on where i am when
i invoke the engine and tell it to process the data.  this particular page
actually used to work, but i recently abstracted all of my xslt calls with
the hopes of converting to trax, etc.

if it matters:
linux, jrun 3.
xalan and xerces 1.2.2

thanks
chris