I'm sorry I wasn't clear.  The repository.dtd that comes with
db-ojb-1.0.3 contains this definition:

<!ATTLIST descriptor-repository
        version (1.0) #REQUIRED
        isolation-level (read-uncommitted | read-committed |
repeatable-read |
                         serializable | optimistic | none)
"read-uncommitted"
        proxy-prefetching-limit CDATA "50"
>

but when XMLSpy/ME tries to validate this line in repository.xml:

<descriptor-repository version="1.0" 
                isolation-level="read-uncommitted"
        proxy-prefetching-limit="50">

the resulting message is:

This file is not valid: Default value " must be one of the name tokens
declared for enumerated attribute 'isolation-level'.

If I change the dtd definition to 

<!ATTLIST descriptor-repository
        version (1.0) #REQUIRED
        isolation-level (read-uncommitted | read-committed |
repeatable-read |
                         serializable | optimistic | none) #IMPLIED
        proxy-prefetching-limit CDATA "50"
>

I get the exactly the same error message.

Jean

> -----Original Message-----
> From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 05, 2005 4:42 PM
> To: OJB Users List
> Subject: Re: Repository*.xml validation
> 
> On 10/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I fixed the problem by changing:
> >
> > <!ATTLIST class-descriptor
> >         class ID #REQUIRED
> >         isolation-level (read-uncommitted | read-committed | 
> > repeatable-read |
> >                          serializable | optimistic | none) ""
> >
> > in repository.dtd to
> >
> > <!ATTLIST class-descriptor
> >         class ID #REQUIRED
> >         isolation-level (read-uncommitted | read-committed | 
> > repeatable-read |
> >                          serializable | optimistic | none) 
> > "read-uncommitted"
> 
> Please try
> 
> #IMPLIED
> 
> as the default instead, and see if that works. Using 
> read-uncomitted at the default would modify the semantics.
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to