Issue Details (XML | Word | Printable)

Key: FOR-814
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: David Crossley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forrest

Add documentation to explain how to aggregate using Cocoon aggregation and using XInclude

Created: 12/Feb/06 07:50 PM   Updated: 07/Oct/08 05:34 AM
Return to search
Component/s: Documentation and website
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
GZip Archive add-data-table.tar.gz 2006-02-12 07:50 PM David Crossley 1 kB
Zip Archive Licensed for inclusion in ASF works xinclude-example.zip 2008-07-17 06:59 AM Carlos Tejo 2 kB


 Description  « Hide
Add documentation to explain how to aggregate data.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order

Ross Gardler added a comment - 13/Feb/06 12:00 AM
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>

David Crossley added a comment - 24/Apr/06 02:49 PM
Enhanced issue summary. Also removed "Patch Available": the attachment provides some example sitemap and XSL for doing Cocoon sitemap aggregation.

Carlos Tejo added a comment - 17/Jul/08 06:59 AM - edited
Example of xinclude attached.

Also, add <xinclude label="xinclude" href="xinclude.html" description="Test of Xinclude"/>

in documentation\content\xdocs\site.xml

Gavin added a comment - 19/Jul/08 11:17 AM
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).

Gavin added a comment - 19/Jul/08 11:18 AM
XInclude patch added, perhaps there are more examples required before closing issue?

Gavin added a comment - 20/Jul/08 06:37 AM
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

David Crossley added a comment - 07/Aug/08 08:23 AM
Thanks Carlos. Now that XInclude is added to the DTD (see FOR-1032), i have added your contribution. I tweaked your explanation a bit. It is not "raw content" - that is a term that we use for something else. I also removed "tab" characters from your files - we don't use them, only spaces.

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.

David Crossley added a comment - 07/Aug/08 08:24 AM
I left this issue open because the original intent was to provide documentation that shows how to use Cocoon sitemap to do aggregation.