RATIONALE: Drugs used in chemotherapy, such as capecitabine and gemcitabine, use different ways to stop tumor cells from dividing so they stop growing or die. Palliative chemotherapy may improve the quality of life in patients who have locally advanced or metastatic biliary tract cancer and may help them live more comfortably.