cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: XML in HTTP Post Parameters
Date Mon, 07 Jun 2004 00:44:03 GMT
I sort of remember doing something similar. 
I think the key is the 
of the xsl.

Anyway, I hope this helps:

on the way in to the html

<<<< other code >>>>>

<xsl:element name="form">

<xsl:attribute name="action">protected-set?name=<xsl:value-of
<xsl:attribute name="method">post</xsl:attribute>

<textarea name="editor" rows="15" cols="60">
      <xsl:value-of disable-output-escaping="yes" select="text()" />
<input type="submit" value="submit" />

<<<< other code >>>>>

and on the out

<<<< other code >>>>>

<xsl:template match="h:parameter[@name='editor']">
<parameter name="value">
<xsl:value-of disable-output-escaping="no" select="h:value" />

<<<< other code >>>>>

-----Original Message-----
From: John Lianoglou []
Sent: Monday, 7 June 2004 10:26
Subject: XML in HTTP Post Parameters

Hey all,

I'm slowly going mad trying to get XML data entered into a HTML 
textarea element, on the Cocoon side. The parameter value naturally 
uses XML character entity replacements for characters such as <, >, and 
& ... is there any (built-in) way to extract proper XML from the post 


John Lianoglou | Vice President | ARACHNEdesign

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message