On 10/14/05, Christian Huegel <[EMAIL PROTECTED]> wrote:
> I changed the code to look like:
> <form action="{$root}../search-{$area}/lucene"><p><input type="hidden"
> name="lenya.usecase" value="search"/><input type="hidden" name="language"
> value="{$chosenlanguage}"/><input class="searchfield" type="text"
> name="query"
> alt="Search field"/><input class="searchsubmit" i18n:attr="value"
> type="submit" value="Search" name="find"/></p></form>
> ...and it passed the validation whith 0 errors.
> I might be wrong but it works.I just changed the search.xsl to produce: <form action=""><div style="display:inline;"> <input name="lenya.usecase" type="hidden" value="search"/><input name="language" type="hidden" value="en"/><input alt="Search field" class="searchfield" name="query" type="text"/><input class="searchsubmit" name="find" type="submit" value="Search"/></div></form> Changes: 1. Add empty action attribute to form element. 2. Add inline div element. Your action ruins the URL. One of the changes in the upgrade is the original URL was kept, so the visitor's language choice is kept, preventing "I was reading in German, but the navigation on the Search page is English." Using a P tag will add extra line breaks. The proper choice would be a SPAN, which is identical to a DIV but inline rather than block, but that tag in not available in strict XHTML, so I used DIV and forced the style to be inline. That defeats the purpose of having a grouping tag, but the XHTML folks think forcing another grouping tag was a good idea even when it does nothing. Why does Lenya removes the ending slashes from the INPUT tag? They are, and already were, in search.xsl, but they are not appearing in the resulting HTML. (I'll fix it if someone has an answer. All of the websites I have designed would fail XHTML validation miserably, since I worry more about compatibility with old browsers than the latest standards, meaning they should be usable without CSS or JavaScript, and use TABLEs and BRs rather than DIVs and Ps.) (OTOH, I want to make Lenya's menus use AJAX.) solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
