5 messages in com.googlegroups.google-mashup-editorRe: pagesize attribute and attribute ...
FromSent OnAttachments
Benjamin16 Aug 2007 12:30 
Jason17 Aug 2007 16:05 
Jason21 Aug 2007 17:53 
Benjamin22 Aug 2007 11:39 
Jason27 Aug 2007 14:35 
Subject:Re: pagesize attribute and attribute names
From:Benjamin (chec@gmail.com)
Date:08/22/2007 11:39:15 AM
List:com.googlegroups.google-mashup-editor

Thanks Jason.

But then I have to wonder why the element names are not case- insensitive...

Check this out: In the autoComplete example at http://code.google.com/gme/samples.html#autoComplete, change "gm:template" to "gm:Template" on line 5 and line 27 and the syntax validator throws an error 'Line 3: Attribute name "template" must have value that matches the "id" attribute of an existing template; "autocomplete" was not found.'

Benjamin

On Aug 22, 2:54 am, Jason <gmej@google.com> wrote:

Hi Benjamin. I apologize for the delay. After digging around a bit, I learned that all GME attribute names were designed to be case- insensitive as a convenience to developers. This way, if you accidentally use 'pageSize' (or even 'pAgEsIzE') instead of 'pagesize,' your application should compile and load as it would otherwise.

- Jason

On Aug 16, 12:30 pm, Benjamin <chec@gmail.com> wrote:

Hello Jason,

In the <gm:item> and <gm:handleEvent> example, the <gm:list> element has an attribute "size". I assume that should be "pagesize"?

When looking at the other examples, I realized that you are always using pageSize as the attribute name. I tried pagesize, pageSize, even pAgEsIzE and all three versions worked just fine, but element and attribute names are supposed to be case sensitive in XML...

I am sorry if I seem to be picky; just want to help improving the documentation.