Re: [xml-dev] Use DTDs!

From
John Cowan <>
To
"Costello, Roger L." <>
Date
2016-05-02T13:23:55Z
ID
<CABzTEQAMg5q4VUUZ9dUBfkC=JdXnpj6=0anJT5-ZN5ST=>
Thread
Re: [xml-dev] Use DTDs!

On Mon, May 2, 2016 at 7:49 AM, Costello, Roger L. <[email protected]> wrote:

<!ELEMENT altitude (#PCDATA)>

<!ATTLIST altitude
             units (feet|meters) #REQUIRED>


The unofficial compact syntax for XSD <http://dret.net/projects/xscs> is even simpler:

element altitude { (xs:string)
    required attribute units {"feet", "meters"}
}

XSD has plenty of problems, but it shouldn't be blamed for the verboseness of XML as a language notation.

--
GMail doesn't have rotating .sigs, but you can see mine at http://www.ccil.org/~cowan/signatures