[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Naming conventions for a sampling of W3C and ISO XML vocabularies

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Fri, 3 Feb 2012 14:48:47 +0000

Naming conventions for a sampling of W3C and ISO XML vocabularies
Hi Folks,

I am sampling some standard XML vocabularies to see what naming convention they use. Below is what I've compiled thus far. What naming convention do you use?

1. XML Schema: all elements and attributes are camel case. Examples: maxOccurs, elementFormDefault, substitutionGroup.

2. XSLT: all elements and attributes are lower-case, dash-separated. Examples: apply-templates, exclude-result-prefixes, analyze-string.

3. Schematron: most elements and attributes are a single, lower-case word (e.g., assert, rule, pattern). There is an element and an attribute with multiple words (value-of, is-a). There are two elements that use camel case (queryBinding and defaultPhase).

Notice that Schematron isn't consistent in its naming convention. Is that a bad thing? Is it a good thing to have a consistent naming convention?

Why does XML Schema and XSLT have different naming conventions? They are both W3C technologies. Does the W3C not have a policy on naming markup?

/Roger



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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.