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]" To: geda-user AT delorie DOT com Subject: Re: [geda-user] file format cooperation References: <20210713163256 DOT 8360 DOT qmail AT stuge DOT se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Precedence: bulk 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