cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject [CForms] <form enctype>
Date Wed, 04 Aug 2004 17:04:32 GMT

Dear Coonsters...

I added this to my forms-field-styling.xsl in the template for 
<fi:form-template>:

	      <xsl:if test="descendant::node()/fi:upload">
         		<xsl:attribute 
name="enctype">multipart/form-data</xsl:attribute>
       	      </xsl:if>

Good idea, or bad?  It seems like if CForms can add this attribute 
automagically, there's no reason for me to have to remember to do it 
with my bare hands in the form template.

If I submit a patch, I'll update the userdoc as well, so I don't want 
to go to the trouble if somebody knows a reason why the patch wouldn't 
be acceptable, so let me know...

Thanks,
Mark


Mime
View raw message