Is it possible to use an Opto isolater to isolate from a DC line and an AC line. In other words, I would like it, that when DC current is passed via the diode, it will shine a light on a transistor connected on a 6VAC line, that will short and cause a relay of a coil to energize with that same 6VAC. Hence, i only want to relay to energize when current passes through the diode of an optoisolator. And this is why my transistor output is located on ac line of relay. What must i consider? is this doable? thanks fellas.