Description
Right now it always use the passed document syntax but it does not make much sense when the actually executed document is going to be a translation. It should get the translation syntax which may not be the same as the default document syntax.