\documentclass{article}
\usepackage{ocg-xetex}
\begin{document}

Notation for ocg environment is the same as in ocg.sty. The third parameter is ignored now.


\begin{ocg}{First layer}{oc1}{1}
  afddsafasd
\end{ocg}

\begin{ocg}{Second layer}{oc2}{0}
  afddsafasd sadf asdfsdaf asdfas
\end{ocg}

\begin{ocg}{}{oc1}{1}
  afddsafasd sda fasdf asdf asdfasdfas fasdf a
\end{ocg}

\end{document}
