public static XmlAttribute makeXmlnsAttribute(String name) {
    { int colonPosition = Native.string_position(name, ':', 0);

      if (colonPosition == Stella.NULL_INTEGER) {
        { XmlGlobalAttribute self000 = XmlGlobalAttribute.newXmlGlobalAttribute();

          self000.name = "";
          self000.namespaceName = "xmlns";
          self000.surfaceForm = name;
          { XmlGlobalAttribute value000 = self000;

            return (value000);
          }
        }
      }
      else {
        { XmlGlobalAttribute self001 = XmlGlobalAttribute.newXmlGlobalAttribute();

          self001.name = Native.string_subsequence(name, colonPosition + 1, Stella.NULL_INTEGER);
          self001.namespaceName = "xmlns";
          self001.surfaceForm = name;
          { XmlGlobalAttribute value001 = self001;

            return (value001);
          }
        }
      }
    }
  }