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

RE: Should one adopt the tag naming convention of anexisting X

  • From: "Cox, Bruce" <Bruce.Cox@USPTO.GOV>
  • To: Uche Ogbuji <uche@ogbuji.net>, "xml-dev@l..."<xml-dev@l...>
  • Date: Mon, 6 Feb 2012 10:57:45 -0500

RE:  Should one adopt the tag naming convention of anexisting X

WIPO Standard ST.36, vocabulary for patent documents, uses hyphen separators rather than underscore or camel case.  Java developers have frequently complained of this, since the hyphen is apparently a reserved character in Java and their tools for automatically creating classes stumble over them when used in element names, requiring manual intervention, or other cleanup actions (so I’m told). 


Is the Java objection real?  Is there any real technical reason to prefer one over the other?


Personally, I find hyphenated element names easier to read than camel case, and vastly easier to type than underscores. 


In general, I’m in the same camp as many others with regard to the source of element names: the business vocabulary takes precedence.  We also try to follow ISO 11179-5, but where there is the slightest chance the results will confuse or snag the business users, we break those rules without hesitation.


Bruce B Cox




From: Uche Ogbuji [mailto:uche@ogbuji.net]
Sent: 2012 February 3, Friday 15:18
To: xml-dev@l...
Subject: Re: Should one adopt the tag naming convention of an existing XML vocabulary or create one's own tag naming convention?


On Fri, Feb 3, 2012 at 1:11 PM, Andrew Welch <andrew.j.welch@g...> wrote:

> Here are two possibilities:
> 1. I will create a my own tag naming convention, independent of the XML vocabularies that I will use.
> 2. I will adopt the tag naming convention of one of the XML vocabularies that I will use. (Which one?)
> What do you recommend?

There is only one way :) names should be all lower-case, with hyphen
as a separator.  Camel case, or any thing else really, are awful for


I strongly agree, but of course this one is a very subjective matter. I curse Java for its propagation of the CamelCase eyesore.


Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed @TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji

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


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.
First Name
Last Name
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-2013 All Rights Reserved.