<solprovider <at> gmail.com> writes:

> 
> Producing valid XHTML is a worthy goal.  Let me know what changes
> would make Search pass validation.  (Would you post the full list of
> validation errors?)
> 
> solprovider
> 

Hi solprovider,

i´ve put the original search.xsl file back in 
{mypub}/lenya/xslt/navigation/  and tried to validate against 
the xhtml schema. I get following output from the w3:

Error  Line 8 column 46: required attribute "action" not specified.

..</span></h1><div id="search"><form><input value="search" 
name="lenya.useca

Error  Line 8 column 105: document type does not allow element 
"input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", 
"h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

..name="lenya.usecase" type="hidden" /><input value="de" name="language" 
type=

Error  Line 8 column 155: document type does not allow element "input" 
here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", 
"pre", "address", "fieldset", "ins", "del" start-tag.

..="de" name="language" type="hidden" /><input alt="Search field" 
name="query" 

Error  Line 8 column 228: document type does not allow element 
"input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", 
"h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

..type="text" class="searchfield" /><input name="find" 
value="Suche" type="


Error  Line 8 column 298: document type does not allow element 
"input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", 
"h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

..type="submit" class="searchsubmit" /></form></div></div><div 
 id="body1"><div

So, the main code in search.xsl which produces this error is:

<form><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"/></form>

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.


Christian



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to