-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: doctype declaration for hibernate 3 ?
PostPosted: Mon May 09, 2005 1:52 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Is it good declaration
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

I think correct is :

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.org/hibernate-mapping-3.0.dtd">

regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 09, 2005 2:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Take a look at org.hibernate.util.DTDEntityResolver:

private static final String URL = "http://hibernate.sourceforge.net/";


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 7:30 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
ok, but when another validator try find dtd he find in /net/sourceforeg/xxx.dtd and find nothing
(hibernate validator know location for dtds, but what about another validator - he have to go to internet)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and ? the dtd is also located at http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:10 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
yes, I'm sorry - i try with www.sourceforge.net

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:14 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I am again.
It mean that another validator can't validate xml without internet access

If dtd is on http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd
then local dtd have to be on
/net/sourceforge/hibernate/hibernate-mapping-3.0.dtd

but it is on
/org/hibernate/hibernate-mapping-3.0.dtd

How I can find this location without internet ?

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I use XML Catalog in eclipse WTP to specify a concrete location.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:40 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
yes, I do it too, but for when xmlcatalog doesn't exists (hypothetic validator) ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
then download and place the .dtd in the location where it expects it to be ?!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:54 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
it is internet access
Why dtd isn't on hibernate.org ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 8:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
because its on the sourceforce site....I cannot see why this matters ;)
you can just copy the .dtd in hibernate3 jar to were ever you xml software knows how to validate.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.