Trang can’t.
One possible solution: declarative markup in the schema and use XSLT.
Another solution: flatten aggressively and “reconstitute”.