FORMS in XSLT

G

gipsy boy

How is it that everything I put between <FORM> tags disappears from the
HTML rendering, when I use an XSL transformation?
How can I render XML to a html form then?
 
T

Tjerk Wolterink

gipsy said:
How is it that everything I put between <FORM> tags disappears from the
HTML rendering, when I use an XSL transformation?
How can I render XML to a html form then?

i do not see what you mean. do you have an example?
 
G

gipsy boy

Tjerk said:
i do not see what you mean. do you have an example?

<xsl:template match="CANDIDATE">
<FORM action="edit" method="POST">
Hello
<INPUT type="submit" value="test"/>
</FORM>
<TR valign="top" bgcolor="#FFFFFF">
<TD rowspan="4" style="font-size:24px;color:#BBBBBB">#<xsl:number
count="CANDIDATE"/></TD>
....
</xsl:template>


Without the <FORM> tag, everything gets rendered correctly, but with it,
the button that's inside it just disappears (with the "Hello".
If I put the <FORM> around everything, it all disappears in the HTML
output. Is this normal?..
 
G

gipsy boy

gipsy said:
<xsl:template match="CANDIDATE">
<FORM action="edit" method="POST">
Hello
<INPUT type="submit" value="test"/>
</FORM>
<TR valign="top" bgcolor="#FFFFFF">
<TD rowspan="4" style="font-size:24px;color:#BBBBBB">#<xsl:number
count="CANDIDATE"/></TD>
...
</xsl:template>


Without the <FORM> tag, everything gets rendered correctly, but with it,
the button that's inside it just disappears (with the "Hello".
If I put the <FORM> around everything, it all disappears in the HTML
output. Is this normal?..

Ah, it appears this only happens because <FORM> needs to be inside a
<TD>, it can't float above a <TR>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top