I was having issues with rendering of MathML equation within fop. The actual problem can be reproduce using only jeuclid package. So clearly the problem is at that level.
See for instance the bug report:
Here is what it looks like on my machine: