As widely documented, babel redefines the catcode for several
characters, making xypic pictures to fail. The cure is to use
\shorthandoff{}, like this (the spanish option redefines "):
\shortandoff{"}
\xy (stuff) \endxy
\shorthandon{"}
    
As widely documented, babel redefines the catcode for several
characters, making xypic pictures to fail. The cure is to use
\shorthandoff{}, like this (the spanish option redefines "):
\shortandoff{"}
\xy (stuff) \endxy
\shorthandon{"}