[Home] [By Thread] [By Date] [Recent Entries]

  • From: John Cowan <johnwcowan@g...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Mon, 2 May 2016 09:23:55 -0400


On Mon, May 2, 2016 at 7:49 AM, Costello, Roger L. <costello@m...> 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

  • Follow-Ups:

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member