OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xmile message

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


Subject: Re: [xmile] dashes vs underscores


Hi Will,

That was intentional.  All the XMILE-specific names use underscore.  Anything we use from CSS matches CSS (I think for obvious reasons).

Karim



On Mon, Jun 2, 2014 at 2:08 AM, Will Glass-Husain <wglass@forio.com> wrote:
Hi,

Most of the model-related double words use in our standard use underscores to join them, e.g.

<options>
    <uses_conveyor/>
    <uses_arrays/>
</options>

and

<sim_specs>
  <start>0</start>
  <stop>10</stop>
  <dt>1</dt>
</sim_specs>

I notice that as a contrast, all the attributes in styles and the display encoding use dashes to separate multiple words.  This probably comes from the similarity to CSS.

<stock name=”Bathtub” x=”50” y=”100” width=”45” height=”35” label-side=”TOP” color=”blue” background-color=”white” z-index=”1” font-family=”Arial” font-size=”9pt” font-weight=”bold” font-style=”italic” text-decoration=”underline” text-align=”center” vertical-text-align=”center” text-padding=”2px” font-color=”blue” text-border-color=”black” text-border-thickness=”1px” text-border-style=”solid”/>


Do we care about the inconsistency?  If so, should we make them the same?

You could make an argument that for tag names we use an underscore and for attributes we use a dash...

WILL

-- 
William Glass-Husain   /forio  |  +1 (415) 440 7500 x89  |  forio.com




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