NXP-14229: define the document variable (in case it's not exposed by the layout system anymore) and make it configurable