Even though I personally prefer to avoid hyphens too, they are standard, if
W3C recommendations qualify as standards.

>From the w3c xml spec:

# Characters '-' and '.' are allowed as name characters.

http://www.w3.org/TR/REC-xml/#xml-names

Definition: A Name is a token beginning with a letter or one of a few
punctuation characters, and continuing with letters, digits, hyphens,
underscores, colons, or full stops, together known as name characters.]
Names beginning with the string "xml", or with any string which would match
(('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in this or
future versions of this specification.

http://www.w3.org/TR/REC-xml/#sec-common-syn
So, in this case, I guess avoiding hyphens is actually the path of least
resistance (probably, a wise approach after all!).

Cheers
Juan Pablo Califano


2008/7/2, Steven Sacks <[EMAIL PROTECTED]>:
>
> You might want to try following XML standards and best practices by not
> using hyphens in XML node or attribute names.
>
> The only time I've seen hyphens in XML is when salespeople and other laymen
> end up writing XML schemas.  Why they're ever given authority to do such
> things is beyond me.
>
> If it was me, I would fight tooth and nail to get those hyphens removed and
> replaced with camel case.  Best practices or die!  ;)
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to