cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject A!, Was: Q? about the pseudo protocol resource:
Date Wed, 13 Mar 2002 15:41:34 GMT
> From: Olivier Rossel [mailto:olivier.rossel@anyware-tech.com]
> 
> I have several XSL files in a jar.
> I call the main one via the pseudo protocol resource:/path/to/main.xsl
> 
> The problem is that main.xsl has several xsl:include.
> How can I handle them?
> 
> Can i have relative URIs in my foobar.xsl?
> Will Cocoon automagically understands that the protocol should be
> resource: / ?

See cocoon.xconf:
        <builtin-logicsheet>
          <parameter name="prefix" value="xscript"/>
          <parameter name="uri"
value="http://apache.org/xsp/xscript/1.0"/>
          <parameter name="href"
value="resource://org/apache/cocoon/components/language/markup/xsp/java/
xscript.xsl"/>
        </builtin-logicsheet>

See xscript.xsl:
  <xsl:include href="xscript-lib.xsl"/>

Answering your question: yes, Cocoon have enough magic to allow relative
xsl:includes. There is one caveat though: packed WAR deployment (i.e.
like under Tomcat unpackWARs=false) on some containers (Borland app
server comes to mind) will not work with this at the moment.

Vadim


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message