You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/09/25 12:56:13 UTC
DO NOT REPLY [Bug 12993] New: -
New version of CastorTransformer (includes marshalling)
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