cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cesare.ra...@delta.it
Subject Form submit
Date Thu, 26 Oct 2000 08:20:39 GMT

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



Mime
View raw message