You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Thomas Dudziak <to...@first.gmd.de> on 2004/01/29 23:59:40 UTC
Error in repository.dtd ?
I just started to add support for the procedures (insert,delete,update) to
the XDoclet OJB module, and I noted that in the DTD every procedure can
only have at most one argument:
<!ELEMENT insert-procedure
(documentation?, (runtime-argument | constant-argument)?,
attribute*)>
(similar for delete-procedure and update-procedure).
Is this correct (the documentation of the tag indicates that there can be
more than one argument) ?
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org
RE: Error in repository.dtd ?
Posted by Ron Gallagher <ro...@bellsouth.net>.
Boy, have I got egg on my face (:| ? is wrong. It should be *. I've
attached an updated DTD that incorporates includes the corrections. Can
someone with commit capability check this in to both the branch and head?
Ron Gallagher
rongallagher at bellsouth dot net
-----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
[PATCH] RE: Error in repository.dtd ?
Posted by Ron Gallagher <ro...@bellsouth.net>.
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
RE: Error in repository.dtd ?
Posted by Thomas Dudziak <to...@first.gmd.de>.
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
RE: Error in repository.dtd ?
Posted by Ron Gallagher <ro...@bellsouth.net>.
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:
<documentation></documentation>
<documentation></documentation>
<constant-argument .../>
<runtime-argument .../>
<runtime-argument .../>
<constant-argument .../>
<runtime-argument .../>
<constant-argument .../>
<attribute .../>
<attribute .../>
Ron Gallagher
Atlanta, GA
rongallagher at bellsouth dot net
-----Original Message-----
From: Thomas Dudziak [mailto:tomdz@first.gmd.de]
Sent: Thursday, January 29, 2004 6:00 PM
To: ojb-dev@db.apache.org
Subject: Error in repository.dtd ?
I just started to add support for the procedures (insert,delete,update) to
the XDoclet OJB module, and I noted that in the DTD every procedure can
only have at most one argument:
<!ELEMENT insert-procedure
(documentation?, (runtime-argument | constant-argument)?,
attribute*)>
(similar for delete-procedure and update-procedure).
Is this correct (the documentation of the tag indicates that there can be
more than one argument) ?
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org