getattribute() in osl is not working I'm trying to get the UV coordinates of from UVMap using getattribute() as follows :

#include "stdosl.h"

shader node_uv_map(
    string name = "",
    output point UV = point(0.0, 0.0, 0.0),
)
{
    if (name == "")
        getattribute("geom:uv", UV);
    else
        getattribute(name, UV);
}


with the name empty or containing the UVmap name there is no output 


how to perform that correctly
is there another way to get the uvmap coordinates in osl
what are othor attribute that can be retrieved using getattribute beside these  


Blender 2.7b
The texture only appeared after I added another Image Texture node (which is not realated to anything). Muting this node if enough to make the texture disappear.

The topic is also discussed on an older BA-Thread

You could use Input/UV-Map node to get the UV-coordinates:

Wiring the UV makes them accessible for getattributes