docs/variant: use modern API for transform