cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Flehmig <fleh...@informatik.uni-kl.de>
Subject Re: Form submit
Date Thu, 26 Oct 2000 07:31:35 GMT

Hmm, 

what about:

<xsl:template match="form">
    <form action="myfile.xml" method="post">
      <xsl:apply-templates/>
    </form>
</xsl:template>


cesare.raoss@delta.it wrote:
> 
> Hi all!
> 
> I have a problem.
> I want to insert a post/submit in the xsl. In my xml file I have:
> 
> <page>
> <form action="db1.xml" method="post">
> <title>
> .
> </title>
> textttttttttttttttttt
> </form>
> </page>
> 
> In my xsl file I have:
> 
> <xsl:template match="form">
>       <form action="myfile.xml" method="post"/>
>      <xsl:apply-templates/>
> </xsl:template>
> 
> <xsl:template match="ROWSET">
>   <table cellspacing="2" cellpadding="2" border="2" bordercolor="#000000">
> <xsl:for-each select="ROW">
> <table>
> ......
> .....
> </table>
> </xsl:for-each>
> </xsl:template>
> 
> <xsl:template match="page">
>  <html>
>    <xsl:apply-templates/>
>     <input type="submit">
> 
>     </input>
> 
>     </html>
> </xsl:template>
> 
> but with this code the html generated is:
> 
> <html>
> <form action="mydb.xml" method="post"></form>     <!------  the problem
is
> here--->
> <table......>
> .....
> </table>
> <input type="submit">
> </html>
> 
> I would like to put the </form> tag at the end of the page.
> 
> I know I miss something.
> 
> Thank you for your help in advance!
> 
> Cesare
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

-- 
Marcus Flehmig
University of Kaiserslautern

Mime
View raw message