#NEWLINE# def resolvePrefix( self , prefix ) : #NEWLINE# #INDENT# '\n        Resolve the specified prefix to a known namespace.\n        @param prefix: A declared prefix\n        @type prefix: basestring\n        @return: The namespace that has been mapped to I{prefix}\n        @rtype: (I{prefix}, I{name})\n        ' #NEWLINE# ns = Namespace . default #NEWLINE# if ( prefix . parent is not None ) : #NEWLINE# #INDENT# ns = self . parent . resolvePrefix ( prefix ) #NEWLINE# #UNINDENT# return ns