cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Dalquist" <ebdal...@mtu.edu>
Subject [Q] util:include-uri relative path
Date Thu, 11 Jul 2002 15:35:44 GMT
I'm wondering if I can use include-uri to include the output of an XSP in
another XSP. I can get it to work if I use the full path but I don't want to
do it this way unless I can use a relative path. The file is being included
in site_format.xsp which is used as a style sheet for index.xsp

Here is the working include:
<util:include-uri
href="http://www.incoherentramblings.net:8888/cocoon/nav_bar.xsp"/>

I would like to do:
<util:include-uri href="nav_bar.xsp"/>

Here is my dir structure:
<TOMCAT_HOME>/
    webapps/
        cocoon/
            sitemap.xmap
            logic/
                site_format.xsp
                nav_bar.xsp
                index.xsp
            stylesheets/
                nav_bar.xsl
                index.xsl


Here is an experpt from my sitemap:


            <!--
             | This is the ONLY special style sheet in the site. It is
generate so that
             | the nav bar, which is constant on all pages, can be dynamic.
             -->
            <map:match pattern="site_format.xsl">
                <map:generate type="serverpages"
src="logic/site_format.xsp"/>
                <map:serialize type="xml"/>
            </map:match>
            <!--
             | The navbar generator. We don't want to run the site_format on
this.
             -->
            <map:match pattern="nav_bar.xsp">
                <map:generate type="serverpages" src="logic/nav_bar.xsp"/>
                <map:transform src="stylesheets/nav_bar.xsl"/>
                <map:serialize type="xml"/>
            </map:match>

            <!--
             | Generate any .xsp file. We apply it's style sheet and then
the
             | main site stylesheet.
             -->
            <map:match pattern="*.xsp">
                <map:generate type="serverpages" src="logic/{1}.xsp"/>
                <map:transform src="cocoon:/site_format.xsl"/>
                <map:transform src="stylesheets/{1}.xsl"/>
                <map:serialize/>
            </map:match>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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