delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/07/13/14:57:32

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <20210713185628.12583.qmail@stuge.se>
Date: Tue, 13 Jul 2021 18:56:28 +0000
From: "Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] file format cooperation
References: <20210713163256 DOT 8360 DOT qmail AT stuge DOT se>
<alpine DOT DEB DOT 2 DOT 21 DOT 2107131914570 DOT 16783 AT nimbus>
MIME-Version: 1.0
In-Reply-To: <alpine.DEB.2.21.2107131914570.16783@nimbus>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Roland Lutz wrote:
> > Roland, is there already a DTD or XSD for your XML format? I didn't
> > see mention of one in the doc. If not, I'll volunteer to write one.
> 
> I chose XML because it's relatively well-known and because files can be
> displayed in a browser given an appropriate XSL stylesheet, but I don't
> know too much about its more advanced aspects.

Fair!

DTD "Document Type Definition" is from SGML times, more limited and
on top of that looks kinda ugly IMO.

XSD "XML Schema Definition" is itself an XML document.

This is good discussion on the two:

https://en.wikipedia.org/wiki/Document_type_definition#XML_DTDs_and_schema_validation

I tend towards XSD.


> What advantage do you think having an DTD or XSD would have?

It allows validation of XML documents which is nice for testing but
perhaps more importantly a formal description of the XML format can
function very well as single point of truth across multiple projects
wanting to interoperate using the format - the standardization point.


//Peter

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019