% test for Hebrew script in fancyvb environments
\documentclass{article}
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{TeX Gyre Schola}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{TeX Gyre Heros}
\setmonofont[Scale=MatchLowercase]{Bitstream Vera Sans Mono}

% Set up for Biblical Hebrew
\TeXXeTstate=1
\usepackage{bidi}
\newfontfamily{\sbl}[Script=Hebrew]{SBL Hebrew}

% The fancyvrb package lets us customize the formatting of verbatim
% environments.  We use a slightly smaller font.
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}
\begin{document}

\begin{SaveVerbatim}{wordAttributes}
<W parent="id18" id="id19" morphId="ru1:1,3.1"
   cat="verb" utf8="{\sbl שְׁפֹ֣ט}"
   michigan="$:PO74+" utf8Lemma="{\sbl שׁפט}"
   lemma="$P+" strongs="8199" morph="vqc"
   gloss="to judge"/>
\end{SaveVerbatim}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

\UseVerbatim{wordAttributes}
 
\end{document}