put orientation after metadata
output orientation to XML schema