You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeff Sexton <js...@odshp.com> on 2003/06/24 19:34:46 UTC

Reference of transforms in sub-sitemap

In a subsite map, I'd like to use an xsl in a transform clause that is off
under a different part of my project.  Transform entries in subsite maps
use relative paths, so I have all mine reading something like this:

 <map:transform src="stylesheets/sheet.xsl"/>

So 'stylesheets' is a directory under the applications directory, as
defined in the main sitemap.

Can I reference a a stylesheet that is off in a different subsite
instead?  Something like:

 <map:transform src="../otherSubsite/stylesheets/sheet.xsl"/>

Maybe I'm going about this incorrectly.  I'd just like to have some
stylesheets be globally available in my various sub-applications.

Many thanks for any advice.

Jeff Sexton
The ODS Companies
jsexton@odshp.com




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


Re: Reference of transforms in sub-sitemap

Posted by Jeff Sexton <js...@odshp.com>.
On Tue, 24 Jun 2003, Andreas Hartmann wrote:
> But I would rather suggest to use a common location-independent
> cocoon:// call:
>
> <map:transform src="cocoon://stylesheets/sheet.xsl"/>
>
> The common stylesheets would be served by your main sitemap
> (or a special sub-sitemap). This enables you to change the
> stylesheet location without affecting your applications.

That looks much better, thanks!


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


Re: Reference of transforms in sub-sitemap

Posted by Andreas Hartmann <an...@apache.org>.
Jeff Sexton wrote:

> Can I reference a a stylesheet that is off in a different subsite
> instead?  Something like:
> 
>  <map:transform src="../otherSubsite/stylesheets/sheet.xsl"/>

Yes, this is possible.

But I would rather suggest to use a common location-independent
cocoon:// call:

<map:transform src="cocoon://stylesheets/sheet.xsl"/>

The common stylesheets would be served by your main sitemap
(or a special sub-sitemap). This enables you to change the
stylesheet location without affecting your applications.

Andreas



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