For using FOP you need FOP is installed on your system and the FOP libraries are part of your classpath.
... <xproc:step name="write pdf" type="yax:Fop"/> ...
As you can see in the graphic the fop step requires XML-FO as input.