You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by James Mitchell <jm...@telocity.com> on 2002/08/10 04:08:45 UTC
Validator DTD
While browsing through the Validator DTD, I noticed that the �formset�
element, which declares child elements �constant� and �form� was placed
between the �constant� and �form� elements (position in file).
I�m not sure what impact (if any) this has on xml validation (no pun
intended), but I thought I would mention it.
I�m attaching a patch, in case someone thinks its necessary.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta
RE: Validator DTD
Posted by James Mitchell <jm...@telocity.com>.
> -----Original Message-----
> From: Craig R. McClanahan [mailto:craigmcc@apache.org]
>
<snip/>
>
> In Servlet 2.3, we adopted the convention of documenting the elements in
> alphabetical order, instead of in some pseudo-hierarchical order. Do you
> think it would improve readability if we did that in the Struts-based
> DTDs?
>
Well, dont change it for my sake. I was going through some of the code and
dtds just to get better acquainted with whats available and try to better
understand the validator. I was hoping to get a few of those last validator
bugs smushed.
>
> Craig
>
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Validator DTD
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 9 Aug 2002, James Mitchell wrote:
> Date: Fri, 9 Aug 2002 23:34:05 -0400
> From: James Mitchell <jm...@telocity.com>
> Reply-To: Struts Developers List <st...@jakarta.apache.org>
> To: Struts Developers List <st...@jakarta.apache.org>
> Subject: RE: Validator DTD
>
> Yes, sorry to bother, I was just thinking about readability sake.....but Im
> just not expert with xml parsing and validation.
>
> Thanks for the input.
>
In Servlet 2.3, we adopted the convention of documenting the elements in
alphabetical order, instead of in some pseudo-hierarchical order. Do you
think it would improve readability if we did that in the Struts-based
DTDs?
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
Craig
>
>
>
> > -----Original Message-----
> > From: Craig R. McClanahan [mailto:craigmcc@apache.org]
> > Sent: Friday, August 09, 2002 11:12 PM
> > To: Struts Developers List
> > Subject: Re: Validator DTD
> >
> >
> >
> >
> > On Fri, 9 Aug 2002, James Mitchell wrote:
> >
> > > Date: Fri, 9 Aug 2002 22:08:45 -0400
> > > From: James Mitchell <jm...@telocity.com>
> > > Reply-To: Struts Developers List <st...@jakarta.apache.org>
> > > To: Struts Developers List <st...@jakarta.apache.org>
> > > Subject: Validator DTD
> > >
> > > While browsing through the Validator DTD, I noticed that the formset
> > > element, which declares child elements constant and form was placed
> > > between the constant and form elements (position in file).
> > >
> > > Im not sure what impact (if any) this has on xml validation (no pun
> > > intended), but I thought I would mention it.
> > >
> > > Im attaching a patch, in case someone thinks its necessary.
> > >
> >
> > This should not matter at all. The allowed subelement order is defined by
> > the <!ELEMENT> declaration of the parent element, not the syntactic order
> > in the DTD. And subelements can be used in more than one parent element
> > (like <set-property> is for struts-config.xml files), so you couldn't rely
> > on element order even if you wanted to.
> >
> > Craig
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Validator DTD
Posted by James Mitchell <jm...@telocity.com>.
Yes, sorry to bother, I was just thinking about readability sake.....but Im
just not expert with xml parsing and validation.
Thanks for the input.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta
> -----Original Message-----
> From: Craig R. McClanahan [mailto:craigmcc@apache.org]
> Sent: Friday, August 09, 2002 11:12 PM
> To: Struts Developers List
> Subject: Re: Validator DTD
>
>
>
>
> On Fri, 9 Aug 2002, James Mitchell wrote:
>
> > Date: Fri, 9 Aug 2002 22:08:45 -0400
> > From: James Mitchell <jm...@telocity.com>
> > Reply-To: Struts Developers List <st...@jakarta.apache.org>
> > To: Struts Developers List <st...@jakarta.apache.org>
> > Subject: Validator DTD
> >
> > While browsing through the Validator DTD, I noticed that the formset
> > element, which declares child elements constant and form was placed
> > between the constant and form elements (position in file).
> >
> > Im not sure what impact (if any) this has on xml validation (no pun
> > intended), but I thought I would mention it.
> >
> > Im attaching a patch, in case someone thinks its necessary.
> >
>
> This should not matter at all. The allowed subelement order is defined by
> the <!ELEMENT> declaration of the parent element, not the syntactic order
> in the DTD. And subelements can be used in more than one parent element
> (like <set-property> is for struts-config.xml files), so you couldn't rely
> on element order even if you wanted to.
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Validator DTD
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 9 Aug 2002, James Mitchell wrote:
> Date: Fri, 9 Aug 2002 22:08:45 -0400
> From: James Mitchell <jm...@telocity.com>
> Reply-To: Struts Developers List <st...@jakarta.apache.org>
> To: Struts Developers List <st...@jakarta.apache.org>
> Subject: Validator DTD
>
> While browsing through the Validator DTD, I noticed that the formset
> element, which declares child elements constant and form was placed
> between the constant and form elements (position in file).
>
> Im not sure what impact (if any) this has on xml validation (no pun
> intended), but I thought I would mention it.
>
> Im attaching a patch, in case someone thinks its necessary.
>
This should not matter at all. The allowed subelement order is defined by
the <!ELEMENT> declaration of the parent element, not the syntactic order
in the DTD. And subelements can be used in more than one parent element
(like <set-property> is for struts-config.xml files), so you couldn't rely
on element order even if you wanted to.
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>