Apache JDO Project - Public DTD at http://java.sun.com/dtd/jdo_2_0.dtd

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > February 2006 > Public DTD at http://java.sun.com/dtd/jdo_2_0.dtd





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Public DTD at http://java.sun.com/dtd/jdo_2_0.dtd
Jörg von Frantzius

2006-02-20, 5:45 pm

Hi,

currently JPOX' metadata parsing complains that 'Attribute "fetch-depth"
must be declared for element type "field" ' for metadata that doesn't
have fetch-depth anymore in fetch-groups fields' definitions. If I
recall correctly, fetch-depth should be removed from the DTD because it
was turned into FetchPlan.setMaxFetchDepth()?

How up-to-date is the public DTD supposed to be? Or should I rather
somehow try to refer to the DTD that is coming with JPOX?

Thanks for any hints,
Jörg

Michael Bouschen

2006-02-20, 5:45 pm

Hi Jörg,

correct, field does not have an attribute 'fetch-depth' anymore. Instead
there is an attribute called 'recursion-depth'. We are currently working
on fixing the DTDs and XSDs to match the spec.

> Hi,
>
> currently JPOX' metadata parsing complains that 'Attribute
> "fetch-depth" must be declared for element type "field" ' for metadata
> that doesn't have fetch-depth anymore in fetch-groups fields'
> definitions. If I recall correctly, fetch-depth should be removed from
> the DTD because it was turned into FetchPlan.setMaxFetchDepth()?
>
> How up-to-date is the public DTD supposed to be? Or should I rather
> somehow try to refer to the DTD that is coming with JPOX?
>
> Thanks for any hints,
> Jörg




--
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin


Craig L Russell

2006-02-20, 5:45 pm

Craig L Russell

2006-02-20, 5:45 pm

Jörg von Frantzius

2006-02-20, 5:45 pm

Hello Craig,

out of curiosity, does the URL of the public DTD somehow retrieve the
latest DTD from apache jdo SVN? Probably someone gotta copy it by hand,
I guess?

Cheers,
Jörg

Craig L Russell schrieb:
> Hi Jörg,
>
> We're putting a bunch of last-minute changes into the Apache api20
> dtds and xsds. So "any time now" these will be accurate and reflect
> the to-be-published specification.
>
> I'd guess that JPOX will not be too far behind the api20 project,
> since the tck tests will have to use the JPOX parsing of the files.
>
> You should have seen and continue to see dialog on this alias and code
> checkins to the api20 project.
>
> Craig
>
> On Feb 20, 2006, at 10:08 AM, Jörg von Frantzius wrote:
>
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>



Jörg von Frantzius

2006-02-20, 5:45 pm

Craig L Russell schrieb:
> And just to clarify, there is no public dtd at
> http://java.sun.com/dtd/jdo_2_0.dtd. That site won't be updated until
> after the vote in the JCP...

Alright, sorry, just now I saw this one.

Do you have an idea when that might be?

We're not generating fetch-depth information anymore, so we keep on
getting meta data parse errors. Gotta validate against
http://svn.apache.org/viewcvs.cgi/*...vax/jdo/jdo.dtd
until then.
>
> Craig
>
> On Feb 20, 2006, at 10:08 AM, Jörg von Frantzius wrote:
>
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>



Andy Jefferson

2006-02-21, 2:45 am

> currently JPOX' metadata parsing complains that 'Attribute "fetch-depth"
> must be declared for element type "field" ' for metadata that doesn't
> have fetch-depth anymore in fetch-groups fields' definitions.


Not for me it doesn't. Please define your input data and version of JPOX
Core/Enhancer.

> How up-to-date is the public DTD supposed to be? Or should I rather
> somehow try to refer to the DTD that is coming with JPOX?


When JPOX finds the "standard" DTD definition it utilises its own copy of the DTD
(which is typically as up-to-date if not more than that in Apache JDO). It
already has recursion-depth and has for several days.


--
Andy

Jörg von Frantzius

2006-02-21, 7:45 am

Sorry I was confused by the error message that sounded like I had to
define the fetch-depth in my meta-data, i.e. that my meta-data was
missing it. Stupid me. Or how would

'Attribute "fetch-depth" must be declared for element type "field"'

sound to you, if you had never seen it before?

Andy Jefferson schrieb:
>
> Not for me it doesn't. Please define your input data and version of JPOX
> Core/Enhancer.
>
>
>
> When JPOX finds the "standard" DTD definition it utilises its own copy of the DTD
> (which is typically as up-to-date if not more than that in Apache JDO). It
> already has recursion-depth and has for several days.
>
>
>



Craig L Russell

2006-02-21, 5:45 pm

Craig L Russell

2006-02-21, 5:45 pm

Jörg von Frantzius

2006-02-21, 5:45 pm

Craig L Russell schrieb:
> Hi Jörg,
>
> On Feb 21, 2006, at 5:43 AM, Jörg von Frantzius wrote:
>
>
> Interesting. Whose error message is this? If it is a standard parser
> message it's lame. If it's a JPOX error message, maybe it should be
> changed to:

Very interesting. It's the error message I get using JDK1.5 on Windows.
Andy gets 'Attribute "bla" is not declared for element "field".', when
he uses an undefined attribute, I think with JDK1.4 on Linux. Sounds
like JDK1.5 rather wants me to change the DTD instead of the XML
>
> "Unknown attribute 'fetch-depth' of element 'field'. Please check the
> spelling of the attribute."
>
> Craig
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>



Craig L Russell

2006-02-21, 5:45 pm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com