#NEWLINE# def normalize_space( xc , p , contextItem , args ) : #NEWLINE# #INDENT# if ( len ( args ) > 1 ) : #NEWLINE# #INDENT# raise XPathContext . FunctionNumArgs ( ) #NEWLINE# #UNINDENT# return ' ' . join ( nonSpacePattern . findall ( stringArg ( xc , args , 0 , 'xs:string' , missingArgFallback = p ) ) )