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=25210>. 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=25210 [Patch] xmodule source Summary: [Patch] xmodule source Product: Cocoon 2 Version: Current CVS 2.1 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: general components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Read and writable source that are accessed with uri:s like: xmodule:[<input-module>|<output-module>]:<attribute-name>[#xpath] For reading the object that is found by applying the XPath (JXPath), on the attribute from the input-module, is supposed to be a DOM Document, a DOM Node or an XMLizable object, the object is serialized to SAX. For writing the input is serialized into a DOM Document, this document is put in the attribute from the output-module if the XPath is empty. If the XPath not is empty, an input-module is used to find the attribute and JXPath is applied. If the object that is found is a DOM tree, the input document is imported into it, otherwize it is just assigned into that position. There is a delete fuction as well, that use removeAll(xpath) from JXPath. The patch is suposed to be put into the scratchpad block. A peculiarity in the RequestAttributeOutputModule and SessionAttributeOutputModule is that they as default prefix all attribute names with "org.apache.cocoon.components.modules.output.OutputModule", why? To make the xmodule source work this must be reconfigured to using attribute names without prefixes. This is done in the cocoon.xconf by puting an empty "key- prefix" element: <key-prefix/> as child to the configurations of the output-modules "request-attr" and "session-attr". To make writing with or without XPaths work in a decent way, there is supposed to be booth an input and an output module that are configured to have the same name and that gets and sets the same attribute. See the thread: http://marc.theaimsgroup.com/?t=106908681200005&r=1&w=2 for discussions behind the current design.
