%% 
%% This is file `xb.sty',
%% 
%% 
%% Created by Jean-Pierre Drucbert as a
%% Variant of File: xr.dtx Copyright (C) 1993-1994 David Carlisle
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xb}
         [1997/02/12 v1.02 eXternal Bib-references (JPFD)]
\def\externalbibdocument{\@ifnextchar[\XB@{\XB@[]}}
\def\XB@[#1]#2{{%
  \makeatletter
  \def\XB@prefix{#1}%
  \XB@next#2.aux\relax\\}}
\def\XB@next#1\relax#2\\{%
  \edef\XB@list{#2}%
  \XB@loop{#1}}
\def\XB@aux{%
  \ifx\XB@list\@empty\else\expandafter\XB@explist\fi}

\def\XB@explist{\expandafter\XB@next\XB@list\\}
\def\XB@loop#1{\openin\@inputcheck#1\relax
  \ifeof\@inputcheck
    \PackageWarning{xb}{^^JNo file #1^^JBIBCITE'S NOT IMPORTED.^^J}%
    \expandafter\XB@aux
  \else
    \PackageInfo{xb}{IMPORTING BIBCITE'S FROM #1}%
    \expandafter\XB@read\fi}
\def\XB@read{%
  \read\@inputcheck to\XB@line
  \expandafter\XB@test\XB@line.....\XB@}
\long\def\XB@test#1#2#3#4#5#6\XB@{%
  \ifx#1\bibcite
    \bibcite{\XB@prefix#2}{#3}%
  \ifx#1\harvardcite
    \harvardcite{\XB@prefix#2}{#3}{#4}{#5}%
  \else\ifx#1\@input
     \edef\XB@list{\XB@list#2\relax}%
  \fi\fi\fi
  \ifeof\@inputcheck\expandafter\XB@aux
  \else\expandafter\XB@read\fi}

\endinput
%% 
%% End of file `xb.sty'.
