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

Re: a useful naming convention


naming convention collections



Citat James Fuller <jim.fuller@r...>:

> Bryan Rasmussen wrote:
> 
> >However reading the KML (Keyhole Markup Language) spec I came across this:
> >
> >There are two basic types of KML tags: simple and complex. Complex tags
> are
> >easily identified by an initial upper case letter, while simple tags use
> all
> >lower case. Complex tags can function as Parent Tags to both complex and
> simple
> >tags, while simple tags are children only and can contain no other tags.
> >  
> >
> this is maybe hard to maintain over time...and realistically this
> information should be conveyed through relation to a schema (IMHO)
> 
There are two places this can be useful.
1. in looking at a schema itself and an element is referenced, by the name we
can see if it is simple or complex. (taking the kml definitions of complex and
simple)

2. in looking at an example instance, especially if a format is a document style
format, with mixed content abounding. 

> 
> - make clear and semantically correct element/attributes names,
> obscuring this with acronyms or with some code convention is reducing
> the value of marking up structure, likewise embedding such a convention
> will be hard to maintain

I agree, but large organizations seem to be enamoured of naming rules for
managing large schema collections. 




> - reduce keystrokes....I avoid camelhumps or capitals and tend to use
> indenting as primary mechanism for making things easier to read
> 

If only everyone did this. but it seems xml has gone the way of camel casing.



-- 
Bryan Rasmussen


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