         "* - #{@except}"
 
   class Name extends NameClass
-    constructor: (nameClassNode, @name) ->
-      @ns = _getAttr nameClassNode, "ns"
+    constructor: (@ns, @name) ->
     toString: =>
       if @ns
         "#{@ns}:#{@name}"

  class NameClass

  class AnyName extends NameClass
    constructor: (nameClassNode, exceptPattern) ->
      @except = getPattern exceptPattern
    toString: =>
      if @except instanceof NotAllowed

    toString: =>
      "#{@name} = #{@pattern}"

  { _getAttr, getPattern,
    AnyName, Attribute,
    Choice, Context,
    Data, Datatype, Define,
    Empty, Element,
    Group,
    Interleave,
    List,
    MissingContent,
    Name, NameClass, NotAllowed, NsName,
    OneOrMore,
    Param, Pattern,
    Ref,
    Text,
    Value
  }
