The perl script should accept nested namespaces, like N1.N2, for outputting xml. Making a Global class for static methods didn't work for functions like n1_n2_function. Another change is that N1 is stripped from the cname for the element name. Partially fixes bug #584744.