Thanks, That seems like a lot of work since I already have a nice java utility that I was hoping to use as my generator to create xml from database data. How is something like this usually done with Cocoon? i.e. My generator already produces regular xml which I'd like to feed to an xsl stylsheet. I guess I could do it using files instead of trying to pass it directly from generator to transformer, but that seems kind of kludgy.
Jeff -----Original Message----- From: Tobia [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 8:35 AM To: [email protected] Subject: Re: Xsp logicsheet method invocation Schmitz, Jeffrey A wrote: > My logicsheet function which serves as my generator produces (and > returns) an xml string. Why, before it gets passed to my xsl > transformer are all the angle brackets converted to < and >, and > is there a way to stop this behavior? Because your "xml string" is just a text node (a string) inside the xml document you're generating. You cannot write literal < and > in xml text nodes, because they delimit tags, so Cocoon escapes them for you. The only reason you would need to output literal < and > is to create output elements, but that is done with <xsp:element> and <xsp:attribute>. See the samples in src/blocks/xsp/samples/java/ <xsp:element> <xsp:param name="name"><xsp:expr>"P".toLowerCase()</xsp:expr></xsp:param> <xsp:attribute name="align">left</xsp:attribute> Hello </xsp:element> generates: <p align="left">Hello</p> Tobia --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
