The XML String is being output OK, the problem is that Cocoon won't try to transform it, although it will transform the XML around it. If I look at the raw XML, the XML spit out from the call to toXML() is being treated as any other String display output, and not XML, (i.e. the client browser sees XML and not transformed HTML).

My example in the previous post shows a JX path passed in by the JavaScript flow.

DNJ




Mark Lundquist wrote:


On Jul 25, 2005, at 9:45 AM, Dustin N. Jenkins wrote:

Is there anyway to get Cocoon to recognize the output of my POJO's toXML() method within my XML file? Right now it treats the resulting XML as just a String and displays it as such.
<schedule>#{times}</schedule>

The output of the 'times' variable is XML, how do I make Cocoon realize it? The XML is built using JDOM, does that really matter in the end when the toXML() just ouputs a String? Should I be outputting a Document or something different?


You mean in a JXTemplate, right?  Just write:

    <schedule>${times.toXML()}</schedule>

HTH,
—ml—


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



--
Dustin N. Jenkins
Application Developer
Invoq Systems, Inc.
AlarmPoint - Critical Event Interactive Alerting
#216 - 852 Fort Street
Victoria, BC V8W 1H8
Tel: (250) 380-0304
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.invoqsystems.com

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

Reply via email to