[OSM-dev] XML Schema (.xsd) for OSM-Protocol 0.5 and DTD question

2008-06-24 Thread Dominik Spies
Hi,

is there a offical XML-Schema for the OSM-Protocol V0.5?
It's not very difficult to translate this but if somebody has done it already..

Abd I have a question regarding this line in the DTD:

!ELEMENT way (tag*,nd,tag*,nd,(tag|nd)*)

why tag*,nd,tag*,nd,(tag|nd)* ?

I think this means: zero to unlimited tag-elements, exaclty one
nd-element, zero to unlimited tag-elements, exaclty one nd-element,
zero to unlimited tag-or-nd-elements ?

wouldn't be !ELEMENT way (tag*,nd+) enough?

Regards,

Dominik

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] XML Schema (.xsd) for OSM-Protocol 0.5 and DTD question

2008-06-24 Thread Stefan de Konink
Dominik Spies schreef:
 is there a offical XML-Schema for the OSM-Protocol V0.5?
 It's not very difficult to translate this but if somebody has done it 
 already..
 
 Abd I have a question regarding this line in the DTD:
 
 !ELEMENT way (tag*,nd,tag*,nd,(tag|nd)*)
 
 why tag*,nd,tag*,nd,(tag|nd)* ?
 
 I think this means: zero to unlimited tag-elements, exaclty one
 nd-element, zero to unlimited tag-elements, exaclty one nd-element,
 zero to unlimited tag-or-nd-elements ?
 
 wouldn't be !ELEMENT way (tag*,nd+) enough?

Not official, but i have started an effort ;)


Stefan

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] XML Schema (.xsd) for OSM-Protocol 0.5 and DTD question

2008-06-24 Thread Frederik Ramm
Hi,

 wouldn't be !ELEMENT way (tag*,nd+) enough?

No, because this would

1. allow ways with one node which we don't want
2. require tags to be specified BEFORE the nodes which isn't a  
requirement

Bye
Frederik

-- 
Frederik Ramm  ##  eMail [EMAIL PROTECTED]  ##  N49°00'09 E008°23'33




___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] XML Schema (.xsd) for OSM-Protocol 0.5 and DTD question

2008-06-24 Thread Dominik Spies
 wouldn't be !ELEMENT way (tag*,nd+) enough?

 No, because this would

 1. allow ways with one node which we don't want
 2. require tags to be specified BEFORE the nodes which isn't a requirement

now I got it. I'm not an expoert in DTD, simply didn't catch the fact
that this list is ordered.

In cleartext, this means, a way must have two to unlimited node-refs
and zero two unlimited tags without specifing any order?

@Stefan

is there any output of your effort you may share?


Regards,

Dominik

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] XML Schema (.xsd) for OSM-Protocol 0.5 and DTD question

2008-06-24 Thread Stefan de Konink
Dominik Spies schreef:
 @Stefan
 
 is there any output of your effort you may share?

http://kinkrsoftware.nl/contrib/osm/osm-0.5.xsd

I hope it can give you a starting point, it seems not to be passing by 
the validator yet...


Stefan

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] XML Schema (.xsd) for OSM-Protocol 0.5 and DTD question

2008-06-24 Thread Martijn van Oosterhout
On Tue, Jun 24, 2008 at 4:15 PM, Dominik Spies [EMAIL PROTECTED] wrote:
 Hi,

 is there a offical XML-Schema for the OSM-Protocol V0.5?
 It's not very difficult to translate this but if somebody has done it 
 already..

You clearly missed:
http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5/DTD

Have a nice day,
-- 
Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev