Andrey Volkov schrieb:
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.
Though it's possible, I would strongly discourage changing the schemas.
The whole point of the schemas is to ensure that all documents are
conforming to standards. Sticking to the open standards, e.g. XHTML like
it's defined by the W3C, makes your life much easier when it comes to
processing (rendering, transformation, content migration etc.), since
you can use existing tools (XSLTs etc.) out of the box.
-- Andreas
--
With best regards,
Andrey Volkov
On Sat, Sep 19, 2009 at 10:03 AM, Oleg Barmin
<[email protected] <mailto:[email protected]>> wrote:
Thanks, Richard. Now it works.
________________________________________
From: Richard Frovarp [[email protected] <mailto:[email protected]>]
Sent: Friday, September 18, 2009 3:20 PM
To: [email protected] <mailto:[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]
<mailto:[email protected]>
For additional commands, e-mail: [email protected]
<mailto:[email protected]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
<mailto:[email protected]>
For additional commands, e-mail: [email protected]
<mailto:[email protected]>
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]