On Fri, 9 Aug 2002, James Mitchell wrote:
> Date: Fri, 9 Aug 2002 22:08:45 -0400
> From: James Mitchell <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> 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).
>
> 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.
>
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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>