[daisy] [JIRA] Created: (DSY-478) Making document content available to layout.xsl

Bruno Dumon (JIRA) issues at cocoondev.org
Fri May 25 08:19:20 CDT 2007


Making document content available to layout.xsl
-----------------------------------------------

         Key: DSY-478
         URL: http://issues.cocoondev.org//browse/DSY-478
     Project: Daisy
        Type: Improvement
  Components: Frontend - platform, Frontend - publishing engine, Frontend - skin  
 Reporter: Bruno Dumon
    Priority: Minor


Currently building up the page layout is independent from rendering the document content. The layout.xsl, which builds up the complete page layout, cannot access content of the document in order to put it in specific places in the layout. E.g. putting the content of a part/field below or above the navigation tree is currently impossible (unless repositioning with CSS). This is because the document content is only merged in the result stream after the layout.xsl transformation.

The reason this is currently this way is:
 - functional: the document styling ought to produce an embeddable piece of HTML (or XSL-FO), insertable in any context (included in other document, in RSS feed, or other aggregation)
 - performance: the more XML that needs to be pulled through an XSLT, the slower (and more memory used, more work for GC, ...)

One potential solution is to merge the content of the main document before the layout.xsl, and merge the content of the included documents after the layout.xsl. This way, document content becomes available to the layout.xsl, but in case of many/large includes the amount of data going through the layout.xsl stays limited to just the main/root document.

Things to do or think about:
 - will this provide enough flexibility or is there more desired?
 - do some performance testing
 - ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list