cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cocoon Wiki] Update of "Application Order of Logicsheets" by AntonioGallardo
Date Thu, 11 Aug 2005 01:14:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification.

The following page has been changed by AntonioGallardo:
http://wiki.apache.org/cocoon/Application_Order_of_Logicsheets

The comment on the change is:
Remove not needed parameters in links.

------------------------------------------------------------------------------
  
  == Application Order of Logicsheets ==
  
- According to Alfred, when two or more builtin logicsheets are used in an XSP page, "the
order [in which they get applied] is not defined since it is derived from the namespace declaration
on the xsp:page root element." (See [http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=112349070725456&w=2])
However if one logicsheet is meant to produce XML that is to be transformed by another, the
order of application must be well-defined. Otherwise you may get a situation where an application
works sometimes, or even most of the time, but can fail at unpredictable moments.
+ According to Alfred, when two or more builtin logicsheets are used in an XSP page, "the
order [in which they get applied] is not defined since it is derived from the namespace declaration
on the xsp:page root element." (See [http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=112349070725456])
However if one logicsheet is meant to produce XML that is to be transformed by another, the
order of application must be well-defined. Otherwise you may get a situation where an application
works sometimes, or even most of the time, but can fail at unpredictable moments.
  
  To solve this problem, you can either put processing instruction <?xsp-logicsheet href="path/to/logicsheetA.xsl"?>
before <xsp:page>, or add element <xsp:logicsheet location="path/to/logicsheetA.xsl"/>
as the first child of <xsp:page>, where logicsheetA is the logicsheet that must run
first (because it produces output to be processed by another logicsheet). This tells the logicsheet
processor to add logicsheetA before adding any logcisheets referenced by xml namespace declarations.
Examples for href and location attributes:
  
@@ -26, +26 @@

  
  PS !AbstractMarkupLanguage.addLogicsheetsToGenerator is responsible for logicsheet application
order, I have not seen cases when it's not working ''-- [wiki:VadimGritsenko Vadim]''
  
- PPS See [http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=112327051428249&w=2]
for a description of such a case. If you would like more information please let me know. ''--
[wiki:LarsHuttar Lars]''
+ PPS See [http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=112327051428249] for a description
of such a case. If you would like more information please let me know. ''-- [wiki:LarsHuttar
Lars]''
  

Mime
View raw message