cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@prema.co.nz>
Subject RE: Resources
Date Sun, 13 Mar 2005 09:35:18 GMT
Hi Petko

Although resources are not inherited you can still reuse resource
declarations by declaring them
in a separate file and including that in each sitemap as an XML entity:

<!DOCTYPE sitemap [
    <!ENTITY resources SYSTEM "file:includes/resources.xml">
]>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
...
&resources;
...
</map:sitemap>

Cheers
Adam

> -----Original Message-----
> From: Petko Petkov [mailto:p.d.petkov@gmail.com]
> Sent: Sunday, 13 March 2005 6:19 p.m.
> To: users@cocoon.apache.org
> Subject: Resources
>
>
> I tried to access a resource that is declared in the root sitemap from
> one of mine sub sitemaps, but it didn't work. I can see the resources
> are not inherited. Is there anyway to do this?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


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


Mime
View raw message