#NEWLINE# def _execute_xml_reference( self ) : #NEWLINE# #INDENT# 'Return Reference node\n        ' #NEWLINE# doc = WPS . Reference ( ) #NEWLINE# doc . attrib [ '{http://www.w3.org/1999/xlink}href' ] = self . url #NEWLINE# if self . data_format : #NEWLINE# #INDENT# if self . data_format . mime_type : #NEWLINE# #INDENT# doc . attrib [ 'mimeType' ] = self . data_format . mime_type #NEWLINE# #UNINDENT# if self . data_format . encoding : #NEWLINE# #INDENT# doc . attrib [ 'encoding' ] = self . data_format . encoding #NEWLINE# #UNINDENT# if self . data_format . schema : #NEWLINE# #INDENT# doc . attrib [ 'schema' ] = self . data_format . schema #NEWLINE# #UNINDENT# #UNINDENT# if ( ( self . method . upper ( ) == 'POST' ) or ( self . method . upper ( ) == 'GET' ) ) : #NEWLINE# #INDENT# doc . attrib [ 'method' ] = self . method . upper ( ) #NEWLINE# #UNINDENT# return doc