Hello,
ad 1:
Vadim, as you suggested it finally works with this expression -
thanks!:
util:include-exprutil:exprxsp:exprmm.marshal(mm.getSimpleItems())/xsp:expr/util:expr/util:include-expr
ad 2:
The contentHandler used in 2 b) is a TraxTransformer instance. Is it
possible that in this case
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
2.
Use Castor's marshalling capabilities:
some-items anAttr=aVal
xsp:logic
model.marshal(this.contentHandler);
/xsp:logic
/some-items
This
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Hello,
ad 1:
Vadim, as you suggested it finally works with this expression -
thanks!:
util:include-
exprutil:exprxsp:exprmm.marshal(mm.getSimpleItems())/xsp:expr/ut
il:exp
r/util:include-expr
ad 2:
The contentHandler used in 2
Whats the best way to perform marshalling from Objects to XML within XSP's?
The Object is a result from a Castor OQL-Query.
Here's an example what I'd like to intend:
some-items anAttr=aVal
xsp:logic
marshalObjToXml(model.getAnItem());
/xsp:logic
/some-items
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Whats the best way to perform marshalling from Objects to XML within
XSP's?
Take a look at the XMLizable interface. These objects could be included
as easy as (IIRC):
xsp:exprmyXMLizable/xsp:expr
The Object is a result from a Castor
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
skipped/
2.
Use Castor's marshalling capabilities:
some-items anAttr=aVal
xsp:logic
model.marshal(this.contentHandler);
/xsp:logic
/some-items
1. Include Object as String:
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:cinclude=http://apache.org/cocoon/include/1.0;
xmlns:util=http://apache.org/xsp/util/2.0;
some-items anAttr=aVal
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
1. Include Object as String:
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:cinclude=http://apache.org/cocoon/include/1.0;
xmlns:util=http://apache.org/xsp/util/2.0;
2.
Use Castor's marshalling capabilities:
some-items anAttr=aVal
xsp:logic
model.marshal(this.contentHandler);
/xsp:logic
/some-items
This sounds perfect.
You can use CastorTransformer from Cocoon scratchpad instead. It looks
something like this: