473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

FORMS in XSLT

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?

--
- gipsy boy
Jul 20 '05 #1
3 5924
gipsy boy wrote:
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?
Jul 20 '05 #2
Tjerk Wolterink wrote:
gipsy boy wrote:
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?


<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?..

--
- gipsy boy
Jul 20 '05 #3
gipsy boy wrote:
Tjerk Wolterink wrote:
gipsy boy wrote:
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?

<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>

--
- gipsy boy
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: řystein | last post by:
Hi! I got an xml file that goes like this. <question id=10 correct_answer=2> <alternative>Answer 1</alternative> <alternative>Answer 2</alternative> <alternative>Answer 3</alternative>...
2
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
1
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
0
by: Marcel Stör | last post by:
Hi all, For one customer we need to transform some 100 business forms (registration forms, etc.) into XSLT:FO templates - our application will produce PDF documents. Up to now our intern has...
3
by: Teksure | last post by:
Hi group, searching in the Internet I found two products for XML which incorporate a very robust debugger for XSL/XSLT, I would like you to see these products and then, give me your opinion about...
5
by: Krishnan | last post by:
Hi, Sorry if this is a cross-post. Wondering if there is any way to genrate Windows UI from an xml file just as one would load a Web UI as HTML from an XML using XSLT. Please do let me know if...
24
by: Nak | last post by:
Hi there, I have some inherited forms that I wish to make "localizable", unfortunately none of the items I wish to be "localizable" are actually being "localized". For example, I have a few of...
1
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT...
12
by: Chris | last post by:
Hi, Just wondering if anyone out there knows if it is possible to convert a CSV to xml using XSLT? I've seen a lot of examples of xml to CSV, but is it possible to go back the other way? I...
2
jkmyoung
by: jkmyoung | last post by:
Here's a short list of useful xslt general tricks that aren't taught at w3schools. Attribute Value Template Official W3C explanation and example This is when you want to put dynamic values...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.