Hi all,
I am looking for the 'best' way to reuse sitemap elements in orther sitemaps.
I hesitated to post this under the dev mailing list but I guess there must be some kind of easy solution.
I am sure many of you build some applications where you end up with several sitemaps that use the same, resources, views or pipelines (just as if they were common tools).
I find it reallly painful when it comes that you have to modify those sections because you have to do it in all the sitemaps.
In other words, this is hard to maintain.
I have looked for a way to nicely 'factorise' all this. I wanted to find something like <map:include type="resources" src="pathWhereToGetTheResource>, but I found nothing.
Temporary solution:
I came up with some kind of mixed solution that looks good to me but is not fully 'cocoon oriented'.
Basically I extend the DTD directly in the sitemap:
<!DOCTYPE store [ <!ENTITY resources SYSTEM "http://localhost:81/.../resources.xmap"> ]>
The URI "http://localhost:81/.../resources.xmap" is in fact a cocoon pipeline itself that get the corresponding file resources.xmap
Using this system I can use something like
<map:resources> &resources; </map:resources>
This is a great advantage since you can really 'factorise' the resources and it really works fine but this is not really in the 'cocoon spirit'
If anyone has a suggestion, I will glad to hear it :)
Thanks in advance, Pierre
--
______________________
Pierre Martins
Mail: [EMAIL PROTECTED]
Symeria (Consulting, Workflow,traceability, quality)
http://www.symeria.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
