Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] a useful naming convention

From: Bryan Rasmussen <bry@------.--->
To: jim.fuller@--------.--.--
Date: 8/2/2005 9:44:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent