#NEWLINE# def one_or_more( xc , p , contextItem , args ) : #NEWLINE# #INDENT# if ( len ( args ) != 1 ) : #NEWLINE# #INDENT# raise XPathContext . FunctionNumArgs ( ) #NEWLINE# #UNINDENT# if ( len ( args [ 0 ] ) < 1 ) : #NEWLINE# #INDENT# raise XPathContext . FunctionNumArgs ( errCode = 'err:FORG0004' , errText = _ ( 'fn:one-or-more called with a sequence containing no items' ) ) #NEWLINE# #UNINDENT# return contextItem [ 0 ]