cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg.Konstantini...@thomson.com
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 
disable-output-escaping="yes" 
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
select="@name"/></xsl:attribute>
<xsl:attribute name="method">post</xsl:attribute>

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

<<<< 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" />
</parameter>
</xsl:template>


<<<< other code >>>>>

-----Original Message-----
From: John Lianoglou [mailto:john@arachnedesign.net]
Sent: Monday, 7 June 2004 10:26
To: users@cocoon.apache.org
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 
variable?



Regards,
jL



John Lianoglou | Vice President | ARACHNEdesign
http://www.arachnedesign.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

Mime
View raw message