Oleg,

There is plenty of .rng files in
\src\modules\xhtml\resources\schemas\directory and deeper. AFAIK, they
define xhtml validation rules. So, if you
change them, you change validation rules. I'm sure, it is possible to
configure them not to have mandatory <p> or <div> in forms and even just
empty forms without any subelement.

-- 
With best regards,
Andrey Volkov

On Sat, Sep 19, 2009 at 10:03 AM, Oleg Barmin
<[email protected]>wrote:

> Thanks, Richard. Now it works.
> ________________________________________
> From: Richard Frovarp [[email protected]]
> Sent: Friday, September 18, 2009 3:20 PM
> To: [email protected]
> Subject: Re: Problem with inserting form into document
>
> Oleg Barmin wrote:
> > I've tried to add input:
> >
> > <html>
> >     <head>
> >         <title>New XHTML document</title>
> >     </head>
> >     <body>
> >         <h1>Send Report</h1>
> >         <p>Here comes the text of your new document...</p>
> >         <p>To add real content, use one of the editors listed in the
> <strong>Edit</strong> menu.</p>
> >         <form method="post" action="/some/action">
> >           <input type="submit" />
> >         </form>
> >     </body>
> > </html>
> >
> > But I've only got more errors:
> >
> >     * error: element "input" from namespace "
> http://www.w3.org/1999/xhtml"; not allowed in this context
> >     * error: unfinished element
>
> Matt was close. You can't have empty form's, and form elements have to
> be in the right containers, which needs to be something more than a
> form. Wrap your input in either a p or a div and it should work.
>
> Richard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to