Hugh Sparks wrote:
Kazó Csaba <[EMAIL PROTECTED]> writes:
I'm trying to get a generator to work with a DOM Node that I pass it from flowscript. The method seems to be described at http://cocoon.apache.org/2.1/861.daisy.html -
basically I do cocoon.sendPage("page",{input:dom}) in my script
and src="xmodule:flow-attr:input" in my generator...
[...]
Now, this doesn't work. The exception says "The object type: class java.lang.String
could not be serialized to XML:".
[...]

I've been trying to figure this out for several months.
I don't understand why some cases of xmodule:flow-attr
work and others don't.

I created a working test case that demonstrates 5 variations
on the theme of passing document objects from flowscript
to the sitemap. I don't know enough about what's going
on to say there is a bug in xmodule:flow-attr but something is
definitely beyond my understanding and it doesn't seem to
operate the way the examples suggest.

The brief example is here:

   http://www.csparks.com/xmodulePuzzle.txt

That's a very good demonstration, thanks for putting it together. Just so it doesn't get lost in the mailing list traffic, would you please open an issue in JIRA[1] and attach your example. Also please link it to this mailing list thread, as Kazó Csaba's latest post contains some very informative information from his research.

I apologize I don't have time myself to dig into it but having it in JIRA will let other developers pick it up.

--Jason

[1] https://issues.apache.org/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to