|
Using XInclude is often easier than modifying the sitemap in this way.
Here you would provide a sitemap match to generate your required data (see links in Davids mail) and then use XInclude in your source XML similar to your "transform" element above. You can see examples of how to do this in the Chart plugin inthe whitebaord. For example "samples/graph1.xml" in the plugin docs includes: <!-- combine is the way the datasets are placed together. I imagine "compare", "add" will be\possible among others <graph combine="compare"> <style> <!-- Use the specified "style" sheet. Format of the url is yet to be specified. --> <xi:include href="linechart1.xml"/> </style> Enhanced issue summary. Also removed "Patch Available": the attachment provides some example sitemap and XSL for doing Cocoon sitemap aggregation.
Example of xinclude attached.
Also, add <xinclude label="xinclude" href="xinclude.html" description="Test of Xinclude"/> in documentation\content\xdocs\site.xml Hi Carlos, thanks for your example.
I have added it to our fresh-site area, so this example will now be part of the default site structure whenever you do a 'forrest seed-sample' to initiate a new site. It will also show shortly on our zone area (forrest.zones.apache.org). The patch has been reverted for now, nothing wrong with the patch itself, but our xdocs validation now fails if we use it. Currently it seems we have no xinclude support in our xdoc dtd, we are looking at it.
See comments on mail list at http://marc.info/?l=forrest-dev&m=121649882401304&w=2 Thanks Carlos. Now that XInclude is added to the DTD (see
I enhanced your example to show use of XInclude in the "site.xml" navigation too. Also added an example of using xpointer, and another example of using XInclude to include a text file. I left this issue open because the original intent was to provide documentation that shows how to use Cocoon sitemap to do aggregation.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
http://mail-archives.apache.org/mod_mbox/forrest-user/200602.mbox/%3cfb9c1a0b0602120053w48afb965k3e30495c51ffe8cc@mail.gmail.com%3e