for $data in /ND/document-content/body/presentation sortby (integer(root(.)//DocID/text()))
let $customer:= $data//frame[@name='お客様名']//text()
,$title    := $data//frame[@name='提案タイトル']//text()
,$date     := $data//frame[@name='提案日']//text()
,$location := $data//frame[@name='営業拠点']//text()
,$charge   := $data//frame[@name='担当営業者']//text()
,$system   := $data//frame[@name='提案機種']//text()
,$estimate := $data//frame[@name='見積もり金額']//text()
where contains($customer/text(),'お客様名項目検索条件') and
      contains($title/text(),'提案タイトル項目検索条件') and
      contains($location/text(),'営業拠点項目検索条件') and
      contains($charge/text(),'担当営業者項目検索条件')
return
<result>
<customer>{string($customer)}</customer>
<title>{string($title)}</title>
<date>{string($date)}</date>
<location>{string($location)}</location>
<charge>{string($charge)}</charge>
<system>{string($system)}</system>
<estimate>{string($estimate)}</estimate>
</result>