<?xml version="1.0" encoding="windows-1252"?>
<node id="371062" title="Re: HTML - sharing design and logic" created="2004-07-01 08:57:10" updated="2005-08-05 07:19:34">
<type id="11">
note</type>
<author id="195718">
hardburn</author>
<data>
<field name="doctext">
&lt;p&gt;&lt;em&gt;No HTML tags should be in the Perl code&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is a nice dream. However, HTML won't allow it. The best example is in specifying an option in a select list:&lt;/p&gt;

&lt;code&gt;
&lt;select name="options"&gt;
    &lt;option&gt;1&lt;/option&gt;
    &lt;option&gt;2&lt;/option&gt;  &lt;!-- select this one --&gt;
    &lt;option&gt;3&lt;/option&gt;
&lt;/select&gt;
&lt;/code&gt;

&lt;p&gt;If HTML allowed you to make the selection in the &lt;code&gt;select&lt;/code&gt; tag itself (like &lt;code&gt;&lt;select name="options" option="2"&gt;&lt;/code&gt;), then this wouldn't be a problem. As it is, there are numerous ways to solve the problem, none of which are particularly satisfying.&lt;/p&gt;

&lt;P&gt;I haven't looked at XForms much (though I like what I have read about it), so I'm not sure if it fixes this problem.&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-195718"&gt;
&lt;p&gt;----&lt;br&gt;
&lt;i&gt;send money to your kernel via the boot loader.&lt;/i&gt;. This and more wisdom available from [http://grenekatz.org/cgi-bin/MarkovBot?id=hardburn|Markov Hardburn].&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
371039</field>
<field name="parent_node">
371039</field>
</data>
</node>
