cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25517] New: - [Patch] module source
Date Mon, 15 Dec 2003 00:01:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25517>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25517

[Patch] module source

           Summary: [Patch] module source
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: danielf@nada.kth.se


Readable source that are accessed with URI:s like:

  module:<input-module>:<attribute-name>[#xpath]

For reading the object that is found by applying the XPath (JXPath), on the 
attribute from the input-module. If the object is a String or an InputStream, 
it made available in form of an InputStream otherwise an exception is thrown.

The module source can be used for various things e.g. instead of the 
StreamGenerator:

  <map:generate type="file" src="module:request:inputStream"/>

For reading html from a input field in a form:

  <map:generate type="html" src="module:request-param:html-field"/>

Instead of the PartSource for reading multi part mime data:

  module:raw-request-param:foo

It can also be used for more advanced things like reading Wiki content from a 
textarea

  <map:generate type="text"     src="module:request-param:wiki-field"/>
  <map:transform type="lexer"   src="cocoon:/wiki.xlex"/>
  <map:transform type="parser"  src="cocoon:/wiki.xgrm"/>
  <map:transform                src="stylesheets/wiki2xdoc.xsl"/>

Mime
View raw message