I think you misunderstood my use of the DTD. I just used a DTD to
describe the tag and which tags and args were optional and required.
It seemed like a standard way to describe the tag without making up my
own way of describing the tag. I wasn't implying that we use strict
XML validation using a DTD.
As for validation, I think that all we need is some form validation in
the custom form field. A possible implementation is like this, the
form when doing clean will identify all the inlines in the text and
call an is_valid method on the inline class and pass the params as
kwargs or a dict to the is_valid method. The is_valid method will
raises an "InlineInvalid" error, the clean method will then raise a
ValidationError with the line number, char position and description of
the fault. This validation can be independent of the markup we're
using. For instance there could be a field called, XMLInlineField,
ReSTInlineField, etc and their clean methods will know how to find the
inline classes.
Re: align attribute, Ryan Berg agrees with you, that might be
something we will want to visit when the form field widget is
developed.
I agree that with you that the render method should just spit out
text, not a XML DOM or something.
On Feb 17, 3:58 pm, Michael <
newmani...@gmail.com> wrote: