Lines Matching defs:namespace
70 def prefix( namespace=nil )
71 prefix_of( self, namespace )
74 def namespace( prefix=prefix() )
78 def namespace=( namespace )
79 @prefix = prefix( namespace )
117 # Append a child to this element, optionally under a provided namespace.
118 # The namespace argument is ignored if the element argument is an Element
119 # object. Otherwise, the element argument is a string, the namespace (if
120 # provided) is the namespace the element is created in.
146 def has_name?( name, namespace = '' )
147 at(3) == name and namespace() == namespace
183 def prefix_of( node, namespace=nil )
184 if not namespace
189 ns = at(3).find { |k,v| v == namespace }
190 ns ? ns : prefix_of( node.parent, namespace )