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 12993] New: - New version of CastorTransformer (includes marshalling)
Date Wed, 25 Sep 2002 10:56:13 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=12993>.
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=12993

New version of CastorTransformer (includes marshalling)

           Summary: New version of CastorTransformer (includes marshalling)
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: m.homeijer@devote.nl


This transformer is a new version of the castortransformer. The following was 
changed:
- Removed deprecated code and use new SAX2 mechanism.
- Renamed castor:insertBean to castor:marshal
- Added castor:unmarshal
- Added pre and post processing for both marshalling and unmarshalling
- Removed the default mapping, it would be the same as having a default xsl 
style sheet in my app.
- Renamed the namespace from ...cocoontransfomer to 
http://castor.exolab.org/castortransformer
- Include support for marshalling collection (bug/patch: 11861)

TODO: The Cocoon parser should be used to marshal/unmarshall. I now search for 
available implementations
because I don't know how to get a Cocoon parser.

--------- Configuration ------------------

To use the transformer, replace the original in scratchpad.

XML input file (from sample):
<?xml version="1.0"?>
<zoo xmlns:castor="http://castor.exolab.org/cocoontransformer">
	<castor:marshal name="Mouse"/>
	<castor:marshal name="Lion"/> 
	<castor:marshal name="Hamster" mapping="castor-mappings/test-
mapping_de.xml"/>
	<castor:marshal name="Wale"/>
	<castor:marshal name="Elefant" scope="session"/> 
	<castor:marshal name="Elefant" scope="request"/> 
</zoo>

Additionally a castor:unmarshal tag can be used to marshal from xml to a java 
bean and in both tags an additional command class can be specified that will be 
used for pre and postprocessing.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message