This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Naming conventions


> I would be interested in what list members use.

I call all variables "x" unless frced to do otherwise.

In general I haven't really seen many common naming idioms although as
you note, lower-case-with-hyphens is more XPath style tham mixedCase.
(unfortunately the people designing XPath2 seem not to have used XPath
before so XPath2 has a bunch of different naming conventions culled from
different languages)


Note that you can (and probably should) use namespace qualified variable
names
x:hello-world
where x: is bound to a namespace of your choice. That way name clashes 
when importing different stylesheets are avoided, even if everyone calls
their variables x:x.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]