db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Gallagher" <rongallag...@bellsouth.net>
Subject [PATCH] RE: Error in repository.dtd ?
Date Fri, 30 Jan 2004 18:48:17 GMT
Boy, have I got egg on my face (:|  ? is wrong.  It should be *.  The
attached DTD includes the corrections.  Can someone with commit capability
check this in to both the branch and head?

Ron

-----Original Message-----
From: Thomas Dudziak [mailto:tomdz@first.gmd.de]
Sent: Friday, January 30, 2004 2:02 AM
To: OJB Developers List
Subject: RE: Error in repository.dtd ?


On Thu, 29 Jan 2004, Ron Gallagher wrote:

> Thomas --
>
> The ? quantifier indicates that 0 or more elements can exist.  By wrapping
> the runtime-argument and constant-argument elements in parenthesis, we're
> essentially saying "either a runtime-argument or constant-argument can
occur
> 0 or more times".  So the dtd would allow this:

Well not really as the '?' says 0 or 1 times, whereas a '*' says 0 or more
times (see XML spec at http://www.w3.org/TR/REC-xml#sec-element-content).

> <documentation></documentation>
> <documentation></documentation>
> <constant-argument .../>
> <runtime-argument .../>
> <runtime-argument .../>
> <constant-argument .../>
> <runtime-argument .../>
> <constant-argument .../>
> <attribute .../>
> <attribute .../>

This construct then wouldn't work with the current dtd (and there does not
seem to be a unit test for it or xml validation is turned off in the xml
parser).

Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org



Mime
View raw message